scrolling through search results causes error
Versions:
- OS: Ubuntu 22.04 LTS 22.04 (jammy)
- GTK Version: 3.24.33
- PyGObject Version: 3.42.0
- GLib Version : 2.71.3
- python-nbxmpp Version: 3.0.2
- Gajim Version: 1.4.2
Traceback
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gajim/gtk/search_view.py", line 211, in _on_edge_reached
self._add_results()
File "/usr/lib/python3/dist-packages/gajim/gtk/search_view.py", line 193, in _add_results
archive_jid = app.storage.archive.get_jid_from_id(msg.jid_id)
File "/usr/lib/python3/dist-packages/gajim/common/storage/archive.py", line 288, in get_jid_from_id
return self._jid_ids_reversed[jid_id]
KeyError: 19
Steps to reproduce the problem
- have some of your user accounts in some chats?
- click burger menu next to chat input box, select 'Search...'
- enable 'search all chats'
- search for 'hello'
- scroll down
- on second dynamic loading of new content in the search results, it consistently causes an error for search term 'hello'
Notes
This consistently occurs on dynamic load number 2 when searching "hello", and only when I enable 'search all chats'. I don't know what specifically is causing it. Probably something in my results. I tried other common words like 'the', 'for', 'and'. No other search produced this error.