Comparison

mod_groups_internal/mod_groups_internal.lua @ 5818:5533c577dd02

mod_groups_internal: Return group name instead of MUC name if MUC has no name
author Matthew Wild <mwild1@gmail.com>
date Thu, 14 Dec 2023 09:44:13 +0000
parent 5708:9edc698848e9
child 5823:8566a423da88
comparison
equal deleted inserted replaced
5817:174c77da03f5 5818:5533c577dd02
417 417
418 return array.map(mucs, function (muc_jid) 418 return array.map(mucs, function (muc_jid)
419 return { 419 return {
420 id = jid.node(muc_jid); 420 id = jid.node(muc_jid);
421 jid = muc_jid; 421 jid = muc_jid;
422 name = muc_host.get_room_from_jid(muc_jid):get_name(); 422 name = muc_host.get_room_from_jid(muc_jid):get_name() or group_info.name;
423 }; 423 };
424 end); 424 end);
425 end 425 end
426 426
427 function emit_member_events(group_id) 427 function emit_member_events(group_id)