Add contextMenu for deleting call events on right-click

This commit is contained in:
trevor-signal 2023-12-12 11:11:39 -05:00 committed by GitHub
parent 7fb01f102d
commit 88fd42a46b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 394 additions and 269 deletions

View file

@ -16,7 +16,11 @@ import { dropNull } from './dropNull';
import { getCallHistorySelector } from '../state/selectors/callHistory';
import { getCallSelector, getActiveCall } from '../state/selectors/calling';
import { getCallingNotificationText } from './callingNotification';
import { getConversationSelector } from '../state/selectors/conversations';
import {
getConversationSelector,
getSelectedMessageIds,
getTargetedMessage,
} from '../state/selectors/conversations';
import { getStringForConversationMerge } from './getStringForConversationMerge';
import { getStringForProfileChange } from './getStringForProfileChange';
import { getTitleNoDefault, getNumber } from './getTitle';
@ -376,6 +380,8 @@ export function getNotificationDataForMessage(
activeCall: getActiveCall(state),
callHistorySelector: getCallHistorySelector(state),
conversationSelector: getConversationSelector(state),
selectedMessageIds: getSelectedMessageIds(state),
targetedMessageId: getTargetedMessage(state)?.id,
});
if (callingNotification) {
const text = getCallingNotificationText(callingNotification, window.i18n);