unarchive chat when receiving message

This commit is contained in:
Daniel Gultsch 2023-03-07 16:13:25 +01:00
parent 0d134a919e
commit 417e801811
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -159,6 +159,10 @@ public class Transformer {
} else {
messageIdentifier =
database.messageDao().getOrCreateMessage(chat, transformation);
if (chat.archived) {
// only for "proper" messages do we want to unarchive chats
database.chatDao().setArchived(chat.id, false);
}
}
} catch (final IllegalStateException e) {
LOGGER.warn("Could not get message identifier", e);