Remove unnecessary Array.from
from markConversationRead
This commit is contained in:
parent
41c78240fd
commit
02518d2e16
1 changed files with 1 additions and 4 deletions
|
@ -99,10 +99,7 @@ export async function markConversationRead(
|
|||
senderId?: string;
|
||||
timestamp: number;
|
||||
hasErrors?: string;
|
||||
}> = [
|
||||
...unreadMessagesSyncData,
|
||||
...Array.from(unreadReactionSyncData.values()),
|
||||
];
|
||||
}> = [...unreadMessagesSyncData, ...unreadReactionSyncData.values()];
|
||||
|
||||
if (readSyncs.length && options.sendReadReceipts) {
|
||||
window.log.info(`Sending ${readSyncs.length} read syncs`);
|
||||
|
|
Loading…
Add table
Reference in a new issue