mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-27 20:03:25 +01:00
Sync story read status from primary
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user