Replace MessageController with MessageCache

This commit is contained in:
Josh Perez
2023-10-03 20:12:57 -04:00
committed by GitHub
parent ba1a8aad09
commit 7d35216fda
73 changed files with 2237 additions and 1229 deletions

View File

@@ -99,7 +99,11 @@ export async function onSync(sync: ViewSyncAttributesType): Promise<void> {
notificationService.removeBy({ messageId: found.id });
const message = window.MessageController.register(found.id, found);
const message = window.MessageCache.__DEPRECATED$register(
found.id,
found,
'ViewSyncs.onSync'
);
let didChangeMessage = false;
if (message.get('readStatus') !== ReadStatus.Viewed) {