|
|
|
@ -381,16 +381,16 @@ export async function deleteMessagesById(messageIds: Array<string>, conversation
|
|
|
|
|
? window.i18n('deleteMessagesQuestion', [messageCount.toString()])
|
|
|
|
|
: window.i18n('deleteMessageQuestion'),
|
|
|
|
|
radioOptions: [
|
|
|
|
|
{ label: window.i18n('deleteJustForMe'), value: window.i18n('deleteJustForMe') },
|
|
|
|
|
{ label: window.i18n('deleteForEveryone'), value: window.i18n('deleteForEveryone') },
|
|
|
|
|
{ label: window.i18n('deleteJustForMe'), value: 'deleteJustForMe' },
|
|
|
|
|
{ label: window.i18n('deleteForEveryone'), value: 'deleteForEveryone' },
|
|
|
|
|
],
|
|
|
|
|
okText: window.i18n('delete'),
|
|
|
|
|
okTheme: SessionButtonColor.Danger,
|
|
|
|
|
onClickOk: async () => {
|
|
|
|
|
onClickOk: async args => {
|
|
|
|
|
await doDeleteSelectedMessages({
|
|
|
|
|
selectedMessages,
|
|
|
|
|
conversation,
|
|
|
|
|
deleteForEveryone: false,
|
|
|
|
|
deleteForEveryone: args === 'deleteForEveryone', // chosenOption from radioOptions
|
|
|
|
|
});
|
|
|
|
|
window.inboxStore?.dispatch(updateConfirmModal(null));
|
|
|
|
|
},
|
|
|
|
|