new pm popup window now show "From nick in room room_name"
This commit is contained in:
parent
9ad6103ada
commit
7b6dd8faca
|
@ -807,7 +807,9 @@ class PopupNotificationWindow:
|
||||||
close_button.modify_bg(gtk.STATE_NORMAL, dodgerblue)
|
close_button.modify_bg(gtk.STATE_NORMAL, dodgerblue)
|
||||||
eventbox.modify_bg(gtk.STATE_NORMAL, dodgerblue)
|
eventbox.modify_bg(gtk.STATE_NORMAL, dodgerblue)
|
||||||
if event_type == _('New Private Message'):
|
if event_type == _('New Private Message'):
|
||||||
txt = _('From %s') % jid.split('/', 1)[1] # Nickname
|
room_jid, nick = gajim.get_room_and_nick_from_fjid(jid)
|
||||||
|
room_name = room_jid.split('@', 1)[0]
|
||||||
|
txt = _('From %s in room %s') % (nick, room_name)
|
||||||
else:
|
else:
|
||||||
txt = _('From %s') % txt
|
txt = _('From %s') % txt
|
||||||
event_description_label.set_text(txt)
|
event_description_label.set_text(txt)
|
||||||
|
|
Loading…
Reference in New Issue