Remove unnecessary Array.from from markConversationRead

This commit is contained in:
Evan Hahn
2021-08-31 11:47:15 -05:00
committed by GitHub
parent 41c78240fd
commit 02518d2e16

View File

@@ -99,10 +99,7 @@ export async function markConversationRead(
senderId?: string; senderId?: string;
timestamp: number; timestamp: number;
hasErrors?: string; hasErrors?: string;
}> = [ }> = [...unreadMessagesSyncData, ...unreadReactionSyncData.values()];
...unreadMessagesSyncData,
...Array.from(unreadReactionSyncData.values()),
];
if (readSyncs.length && options.sendReadReceipts) { if (readSyncs.length && options.sendReadReceipts) {
window.log.info(`Sending ${readSyncs.length} read syncs`); window.log.info(`Sending ${readSyncs.length} read syncs`);