comparison mod_groups_internal/mod_groups_internal.lua @ 5825:865c77b5c6dc

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).
author Matthew Wild <mwild1@gmail.com>
date Fri, 12 Jan 2024 18:20:40 +0000
parents f1e816df1f73
children
comparison
equal deleted inserted replaced
5824:f1e816df1f73 5825:865c77b5c6dc
462 local room = muc_host.get_room_from_jid(muc_jid); 462 local room = muc_host.get_room_from_jid(muc_jid);
463 return { 463 return {
464 id = jid.node(muc_jid); 464 id = jid.node(muc_jid);
465 jid = muc_jid; 465 jid = muc_jid;
466 name = room and room:get_name() or group_info.name; 466 name = room and room:get_name() or group_info.name;
467 deleted = not room or room._data.destroyed;
467 }; 468 };
468 end); 469 end);
469 end 470 end
470 471
471 function emit_member_events(group_id) 472 function emit_member_events(group_id)