Do not display notifications and sounds for messages that were already read on other devices

This should make receiving message history a little less annoying when not using the client for a long time, while still getting the full history in your log.
This commit is contained in:
mjentsch 2015-08-02 19:52:30 +02:00
parent dc5bc8d039
commit 4b96e3cb34

View file

@ -415,6 +415,10 @@ static void tgp_msg_display (struct tgl_state *TLS, struct tgp_msg_loading *C) {
flags |= PURPLE_MESSAGE_RECV;
}
if (! (M->flags & TGLMF_UNREAD)) {
flags |= PURPLE_MESSAGE_DELAYED;
}
if (! str_not_empty (text)) {
warning ("No text to display");
return;