mod_groups_internal: Add flag to indicate when a linked MUC has been deleted
authorMatthew Wild <mwild1@gmail.com>
Fri, 12 Jan 2024 18:20:40 +0000
changeset 5829 865c77b5c6dc
parent 5828 f1e816df1f73
child 5830 791aa8072f58
mod_groups_internal: Add flag to indicate when a linked MUC has been deleted In theory this shouldn't happen, but it could (and apparently does).
mod_groups_internal/mod_groups_internal.lua
--- a/mod_groups_internal/mod_groups_internal.lua	Fri Jan 12 18:19:56 2024 +0000
+++ b/mod_groups_internal/mod_groups_internal.lua	Fri Jan 12 18:20:40 2024 +0000
@@ -464,6 +464,7 @@
 			id = jid.node(muc_jid);
 			jid = muc_jid;
 			name = room and room:get_name() or group_info.name;
+			deleted = not room or room._data.destroyed;
 		};
 	end);
 end