Contact Details and Settings button causes error when group chat is not joined
- gajim version: gajim-nightly
Steps to reproduce
- have a group chat opened that is not joined. You can probably achieve this by deleting the MUC from a separate client.
- press the 'Contact Details and Settings' button in this group chat.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gajim/gtk/chat_stack.py", line 600, in _on_action
open_window('GroupchatDetails', contact=contact)
File "/usr/lib/python3/dist-packages/gajim/gtk/util.py", line 714, in open_window
window = window_cls(**kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/gajim/gtk/groupchat_details.py", line 83, in __init__
self._add_affiliations()
File "/usr/lib/python3/dist-packages/gajim/gtk/groupchat_details.py", line 208, in _add_affiliations
affiliations = GroupchatAffiliation(self._client, self._contact)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/gajim/gtk/groupchat_affiliation.py", line 61, in __init__
assert self_contact is not None
^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError