Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
f21ba0e6 by wurstsalat at 2024-07-28T16:03:27+02:00
cfix: ChatListStack: Make removing group chat more robust
Fixes #11926
- - - - -
1 changed file:
- gajim/gtk/chat_list_stack.py
Changes:
=====================================
gajim/gtk/chat_list_stack.py
=====================================
@@ -282,16 +282,18 @@ def _remove(unregister: bool = False) -> None:
_remove()
return
+ muc_disco = contact.get_disco()
+ us = contact.get_self()
+ if muc_disco is None or us is None:
+ _remove()
+ return
+
buttons = [
DialogButton.make('Cancel'),
DialogButton.make(
'Accept', text=_('_Leave'), callback=_leave),
]
- muc_disco = contact.get_disco()
- assert muc_disco is not None
- us = contact.get_self()
- assert us is not None
affiliation = us.affiliation
text = _('By closing this chat, you will leave "%s".') % contact.name
if Namespace.REGISTER in muc_disco.features and not
affiliation.is_none:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/f21ba0e61b1c5fa7e6e9a7e5a8eac35a2eb5eb6a
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/f21ba0e61b1c5fa7e6e9a7e5a8eac35a2eb5eb6a
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]