mod_groups_internal: Return group name instead of MUC name if MUC has no name
authorMatthew Wild <mwild1@gmail.com>
Thu, 14 Dec 2023 09:44:13 +0000
changeset 5799 5533c577dd02
parent 5798 174c77da03f5
child 5800 93d6e9026c1b
mod_groups_internal: Return group name instead of MUC name if MUC has no name
mod_groups_internal/mod_groups_internal.lua
--- a/mod_groups_internal/mod_groups_internal.lua	Tue Dec 12 19:08:28 2023 +0000
+++ b/mod_groups_internal/mod_groups_internal.lua	Thu Dec 14 09:44:13 2023 +0000
@@ -419,7 +419,7 @@
 		return {
 			id = jid.node(muc_jid);
 			jid = muc_jid;
-			name = muc_host.get_room_from_jid(muc_jid):get_name();
+			name = muc_host.get_room_from_jid(muc_jid):get_name() or group_info.name;
 		};
 	end);
 end