Commit e665ee1f authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Fix MUC invite notification

Fixes #9309
parent bf64d040
......@@ -661,8 +661,8 @@ class Interface:
text = _('You are invited to {room} by {user}').format(
room=obj.room_jid, user=str(obj.from_))
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:
......@@ -153,7 +153,7 @@ class Notification:
return gtkgui_helpers.get_iconset_name_for(
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'),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment