gajim crashed when trying to access details of a disconnected muc
Versions:
- OS: Debian GNU/Linux bookworm/sid n/a (bookworm)
- GTK Version: 3.24.34
- PyGObject Version: 3.42.2
- GLib Version : 2.74.0
- python-nbxmpp Version: 3.2.4
- Gajim Version: 1.5.2
Traceback
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gajim/gtk/chat_stack.py", line 577, in _on_action
open_window('GroupchatDetails', contact=contact)
File "/usr/lib/python3/dist-packages/gajim/gtk/util.py", line 700, 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 64, in __init__
self._prepare_manage()
File "/usr/lib/python3/dist-packages/gajim/gtk/groupchat_manage.py", line 134, in _prepare_manage
assert self_contact
AssertionError
Steps to reproduce the problem
In an MUC with a status "You left this group chat Join" status trying access details gave a crash. This group was not left manually but probably due to bad connection this was in this state. This could be another bug, where mucs with disconnected state should be highlighted and offered to rejoin.