Diff

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
line wrap: on
line diff
--- 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