changeset 5824:f1e816df1f73

mod_groups_internal: Also remove MUCs that still exist, but have been destroyed Tombstones could previously fool us into thinking the MUC was still there.
author Matthew Wild <mwild1@gmail.com>
date Fri, 12 Jan 2024 18:19:56 +0000
parents 220502eb05aa
children 865c77b5c6dc
files mod_groups_internal/mod_groups_internal.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_groups_internal/mod_groups_internal.lua	Fri Jan 12 15:40:23 2024 +0000
+++ b/mod_groups_internal/mod_groups_internal.lua	Fri Jan 12 18:19:56 2024 +0000
@@ -247,7 +247,7 @@
 		for i = #group_info.mucs, 1, -1 do
 			local muc_jid = group_info.mucs[i];
 			local room = muc_host.get_room_from_jid(muc_jid);
-			if not room then
+			if not room or room._data.destroyed then
 				-- MUC no longer available, for some reason
 				-- Let's remove it from the circle metadata...
 				table.remove(group_info.mucs, i);