Don't mark old messages as read on timer update

This commit is contained in:
Scott Nonnenberg 2021-04-09 13:11:36 -07:00 committed by GitHub
parent fbaf3ba247
commit e47b00a33c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3820,8 +3820,7 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
Math.min(readSync.get('read_at'), Date.now())
);
}
}
if (readSync || message.isExpirationTimerUpdate()) {
message.unset('unread');
// This is primarily to allow the conversation to mark all older
// messages as read, as is done when we receive a read sync for