Details window causes error when host xmpp server is offline
Versions:
- OS: Ubuntu 22.04.1 LTS 22.04 (jammy)
- GTK Version: 3.24.33
- PyGObject Version: 3.42.1
- GLib Version : 2.71.3
- python-nbxmpp Version: 3.2.5
- Gajim Version: 1.5.4
Traceback
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gajim/gtk/chat_stack.py", line 591, in _on_action
open_window('GroupchatDetails', contact=contact)
File "/usr/lib/python3/dist-packages/gajim/gtk/util.py", line 715, in open_window
window = window_cls(**kwargs)
File "/usr/lib/python3/dist-packages/gajim/gtk/groupchat_details.py", line 74, in __init__
self._add_groupchat_manage()
File "/usr/lib/python3/dist-packages/gajim/gtk/groupchat_details.py", line 136, in _add_groupchat_manage
self._groupchat_manage = GroupchatManage(self.account,
File "/usr/lib/python3/dist-packages/gajim/gtk/groupchat_manage.py", line 63, in __init__
self._prepare_manage()
File "/usr/lib/python3/dist-packages/gajim/gtk/groupchat_manage.py", line 135, in _prepare_manage
assert self_contact
AssertionError
Steps to reproduce the problem
- have an account with a server that is offline
- in a muc that is joined by this account but is hosted on a different server, there should be a notification "You left this group chat", with button that says "Join"
- in this muc, try to open the Details window for this muc