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/0returned 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 ejabberdupdatecommand assumes that value to be the list of updated modules instead. As that seems more useful, modifyejabberd_update:update/0accordingly. This fixes theupdatecommand output. -
get_mam_count: New command to get number of archived messages for an account
Changes in hooks¶
-
New
check_register_userhook inejabberd_auth.erlto allow blocking account registration when a tombstone exists. -
Modified
room_destroyedhook inmod_muc_room.erlUntil now the hook passed as arguments:LServer, Room, Host. Now it passes:LServer, Room, Host, PersistentThat newPersistentargument passes the roompersistentoption, required by mod_tombstones because only persistent rooms should generate a tombstone, temporary ones should not. And thepersistentoption should not be completely overwritten, as we must still known its real value even when room is being destroyed.