Upgrade to ejabberd 24.10¶
If you upgrade ejabberd from a previous release to 24.10, be aware there are some changes in commands and hooks. There are no changes in configuration and SQL schema.
Fixes in commands¶
-
set_presence
: Return error when session not found -
send_direct_invitation
: Better handling of malformed jids -
update
: Fix command outputSo far,
ejabberd_update:update/0
returned the return value ofrelease_handler_1:eval_script/1
. That function returns the list of updated but unpurged modules, i.e., modules where one or more processes are still running an old version of the code. Since commit5a34020d23f455f80a144bcb0d8ee94770c0dbb1
, the ejabberdupdate
command assumes that value to be the list of updated modules instead. As that seems more useful, modifyejabberd_update:update/0
accordingly. This fixes theupdate
command output. -
get_mam_count
: New command to get number of archived messages for an account
Changes in hooks¶
-
New
check_register_user
hook inejabberd_auth.erl
to allow blocking account registration when a tombstone exists. -
Modified
room_destroyed
hook inmod_muc_room.erl
Until now the hook passed as arguments:LServer, Room, Host
. Now it passes:LServer, Room, Host, Persistent
That newPersistent
argument passes the roompersistent
option, required by mod_tombstones because only persistent rooms should generate a tombstone, temporary ones should not. And thepersistent
option should not be completely overwritten, as we must still known its real value even when room is being destroyed.