Error when opening chat which has no messages
Steps to reproduce the problem
- Enable action to delete history on closing Gajim
- Have not read notifications in a MUC
- Close Gajim
Actual behavior
when reopening Gajim, it calls mark_as_read() this tries to load messages from the database, but there are none. The mark_as_read() method assumes that messages can always be loaded.