Fix late view/read sync logic

This commit is contained in:
Fedor Indutny 2021-08-16 10:18:16 -07:00 committed by GitHub
parent 962515031d
commit e7be409961
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3284,7 +3284,10 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
const viewSyncs = ViewSyncs.getSingleton().forMessage(message);
if (message.get('expireTimer')) {
if (
(readSyncs.length !== 0 || viewSyncs.length !== 0) &&
message.get('expireTimer')
) {
const existingExpirationStartTimestamp = message.get(
'expirationStartTimestamp'
);