TT#14099 Send muc room name in push

* If a muc room has no description set, send its room name
  instead of "prosody chatroom" to provide proper context
  in push messages.

Change-Id: Id8259d69a3ebefa63da97ae0c71e39df0d558a08
changes/87/12587/1
Andreas Granig 10 years ago
parent fb99302438
commit 0521a0386c

@ -235,7 +235,7 @@ local function get_muc_info(stanza, caller_info)
end
room = room_host.rooms[muc['jid']];
if room then
muc['room'] = room:get_description() or 'Prosody chatroom';
muc['room'] = room:get_description() or muc['name'];
if muc_stanza then
muc['invite'] = format("Group chat invitation to '%s' from %s",
muc['room'], caller_info.display_name);

Loading…
Cancel
Save