Sync story read status from primary

This commit is contained in:
Josh Perez 2022-04-20 20:29:37 -04:00 committed by GitHub
parent da45f26d37
commit 4896ce32c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 24 deletions

View file

@ -8,7 +8,7 @@ import { Collection, Model } from 'backbone';
import type { MessageModel } from '../models/messages';
import { ReadStatus } from '../messages/MessageReadStatus';
import { markViewed } from '../services/MessageUpdater';
import { isIncoming } from '../state/selectors/message';
import { isIncoming, isStory } from '../state/selectors/message';
import { notificationService } from '../services/notifications';
import * as log from '../logging/log';
@ -67,7 +67,10 @@ export class ViewSyncs extends Collection {
uuid: item.sourceUuid,
});
return isIncoming(item) && senderId === sync.get('senderId');
return (
(isIncoming(item) || isStory(item)) &&
senderId === sync.get('senderId')
);
});
if (!found) {