Skip to content
Snippets Groups Projects
Commit c09f00aa authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

Show "%nick from room %room" in pm banner. Fixes #2197

parent 4adf2c4f
No related branches found
No related tags found
No related merge requests found
......@@ -901,6 +901,11 @@ def draw_banner(self, chatstate = None):
if self.resource:
name += '/' + self.resource
avoid_showing_account_too = True
if self.TYPE_ID == message_control.TYPE_PM:
room_jid = self.contact.jid.split('/')[0]
room_ctrl = gajim.interface.msg_win_mgr.get_control(room_jid,
self.account)
name = _('%s from room %s') % (name, room_ctrl.name)
name = gtkgui_helpers.escape_for_pango_markup(name)
# We know our contacts nick, but if there are any other controls
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment