[PATCH] mod_muc_badge: If room has no title use localpart of room's jid (fixes #1767)
9 views
Skip to first unread message
Bernhard Geier
unread,
Aug 4, 2022, 10:12:43 AM8/4/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to proso...@googlegroups.com
Rooms may have a title/name, but they do not have to. A JID is enough.
When trying to get the badge for a room without a title, mod_muc_badge
throws a HTTP error 500 (with Lua 5.1) or shows a "nil" label in the SVG
badge (with Lua 5.2).
This patch uses this JID's localpart if a room has no title to fix that.