unarchive chat when receiving message
This commit is contained in:
parent
0d134a919e
commit
417e801811
|
@ -159,6 +159,10 @@ public class Transformer {
|
||||||
} else {
|
} else {
|
||||||
messageIdentifier =
|
messageIdentifier =
|
||||||
database.messageDao().getOrCreateMessage(chat, transformation);
|
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) {
|
} catch (final IllegalStateException e) {
|
||||||
LOGGER.warn("Could not get message identifier", e);
|
LOGGER.warn("Could not get message identifier", e);
|
||||||
|
|
Loading…
Reference in a new issue