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:
parent
dc5bc8d039
commit
4b96e3cb34
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue