Philipp Hörist pushed to branch master at gajim / gajim
Commits:
47c01dca by Philipp Hörist at 2023-08-04T10:48:55+02:00
cfix: GroupChatInvitation: Don’t fail if invitation is issued by MUC
Fixes #11590
- - - - -
1 changed file:
- gajim/gtk/groupchat_invitation.py
Changes:
=====================================
gajim/gtk/groupchat_invitation.py
=====================================
@@ -20,6 +20,7 @@
from gajim.common.helpers import get_group_chat_nick
from gajim.common.i18n import _
from gajim.common.modules.contacts import BareContact
+from gajim.common.modules.contacts import GroupchatContact
from gajim.gtk.groupchat_info import GroupChatInfoScrolled
from gajim.gtk.groupchat_nick import NickChooser
@@ -55,7 +56,7 @@ def __init__(self, account: str, event: MucInvitation) ->
None:
contact = self._client.get_module('Contacts').get_contact(
event.from_.bare)
- assert isinstance(contact, BareContact)
+ assert isinstance(contact, (BareContact, GroupchatContact))
contact_label = Gtk.Label(label=contact.name)
contact_label.get_style_context().add_class('bold16')
contact_label.set_line_wrap(True)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/47c01dca13e1add520bbbc800b61f47a9ceadf36
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/47c01dca13e1add520bbbc800b61f47a9ceadf36
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]