Switching chat gives KeyError in app.nicks[account]
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.3
Traceback
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gajim/gtk/chat_page.py", line 161, in _on_chat_selected
self._chat_stack.show_chat(account, jid)
File "/usr/lib/python3/dist-packages/gajim/gtk/chat_stack.py", line 193, in show_chat
self._message_action_box.switch_contact(self._current_contact)
File "/usr/lib/python3/dist-packages/gajim/gtk/message_actions_box.py", line 214, in switch_contact
self.msg_textview.switch_contact(contact)
File "/usr/lib/python3/dist-packages/gajim/gtk/message_input.py", line 243, in switch_contact
app.storage.drafts.set(self._contact, self.get_text())
File "/usr/lib/python3/dist-packages/gajim/common/storage/draft.py", line 31, in set
self.remove(contact)
File "/usr/lib/python3/dist-packages/gajim/common/storage/draft.py", line 42, in remove
self.notify('draft-update', contact, None)
File "/usr/lib/python3/dist-packages/gajim/common/helpers.py", line 1308, in notify
func(self, signal_name, *args, **kwargs)
File "/usr/lib/python3/dist-packages/gajim/gtk/chat_list_row.py", line 379, in _on_draft_update
self._show_draft(draft)
File "/usr/lib/python3/dist-packages/gajim/gtk/chat_list_row.py", line 384, in _show_draft
self._display_last_conversation_line()
File "/usr/lib/python3/dist-packages/gajim/gtk/chat_list_row.py", line 163, in _display_last_conversation_line
our_nick = get_group_chat_nick(
File "/usr/lib/python3/dist-packages/gajim/common/helpers.py", line 1418, in get_group_chat_nick
nick = app.nicks[account]
KeyError: 'example.com'
Steps to reproduce the problem
I'm not sure exactly. The immediate action that seemed to cause it was clicking on a chat tab.