plugins/mod_smacks.lua
changeset 12056 d17b8fcf11c7
parent 12055 c32ef09ab452
child 12057 03e9587fbfd2
--- a/plugins/mod_smacks.lua	Wed Dec 01 16:41:10 2021 +0100
+++ b/plugins/mod_smacks.lua	Wed Dec 01 20:13:08 2021 +0100
@@ -549,6 +549,7 @@
 			session.send(st.stanza("failed", { xmlns = xmlns_sm, h = format_h(old_session.h) })
 				:tag("item-not-found", { xmlns = xmlns_errors })
 			);
+			old_session_registry:set(session.username, id, nil);
 		else
 			session.send(st.stanza("failed", { xmlns = xmlns_sm })
 				:tag("item-not-found", { xmlns = xmlns_errors })