Fix MUC invite notification

Fixes #9309
This commit is contained in:
Philipp Hörist 2018-08-24 22:03:33 +02:00
parent 3d4774378e
commit 0bbcc937fd
2 changed files with 4 additions and 4 deletions

View File

@ -661,8 +661,8 @@ class Interface:
text = _('You are invited to {room} by {user}').format(
room=obj.room_jid, user=str(obj.from_))
app.notification.popup(
event_type, obj.room_jid, obj.account, 'gc-invitation',
'gajim-gc_invitation', event_type, text)
event_type, str(obj.from_), obj.account, 'gc-invitation',
'gajim-gc_invitation', event_type, text, room_jid=obj.room_jid)
def forget_gpg_passphrase(self, keyid):
if keyid in self.gpg_passphrase:

View File

@ -153,7 +153,7 @@ class Notification:
return gtkgui_helpers.get_iconset_name_for(obj.show)
def popup(self, event_type, jid, account, type_='', icon_name=None,
title=None, text=None, timeout=-1):
title=None, text=None, timeout=-1, room_jid=None):
"""
Notify a user of an event using GNotification and GApplication under
Linux, Use PopupNotificationWindow under Windows
@ -206,7 +206,7 @@ class Notification:
_('Contact Changed Status')):
notif_id = self._id('contact-status-changed', account, jid)
elif event_type == _('Groupchat Invitation'):
notif_id = self._id('gc-invitation', account, jid)
notif_id = self._id('gc-invitation', account, room_jid)
elif event_type == _('Connection Failed'):
notif_id = self._id('connection-failed', account)
elif event_type in (_('New Message'), _('New Single Message'),