Mark all calls read when opening calls tab

This commit is contained in:
Jamie Kyle 2023-08-22 14:01:36 -07:00 committed by GitHub
parent b7c17212c7
commit 344ebf494d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 80 additions and 17 deletions

View file

@ -59,7 +59,6 @@ import {
callDetailsSchema,
} from '../types/CallDisposition';
import type { ConversationType } from '../state/ducks/conversations';
import { drop } from './drop';
// utils
// -----
@ -895,7 +894,7 @@ export async function clearCallHistoryDataAndSync(): Promise<void> {
messageId,
message.get('conversationId')
);
drop(conversation.updateLastMessage());
conversation.debouncedUpdateLastMessage();
window.MessageController.unregister(messageId);
});