mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Refactor read state tracking
Adds support for handling early arriving read receipts. // FREEBIE
This commit is contained in:
@@ -326,7 +326,12 @@
|
||||
}
|
||||
attributes.active_at = now;
|
||||
if (type === 'incoming') {
|
||||
attributes.unreadCount = conversation.get('unreadCount') + 1;
|
||||
// experimental
|
||||
if (Whisper.ReadReceipts.forMessage(message)) {
|
||||
message.unset('unread');
|
||||
} else {
|
||||
attributes.unreadCount = conversation.get('unreadCount') + 1;
|
||||
}
|
||||
}
|
||||
conversation.set(attributes);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user