Changeset

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
parents 5817:174c77da03f5
children 5819:93d6e9026c1b
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	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