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
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);
});

View File

@@ -15,7 +15,7 @@ export async function cleanupMessage(
window.reduxActions?.conversations.messageDeleted(id, conversationId);
const parentConversation = window.ConversationController.get(conversationId);
parentConversation?.debouncedUpdateLastMessage?.();
parentConversation?.debouncedUpdateLastMessage();
window.MessageController.unregister(id);