From 224b6129145b81235fe1a2d1d03d1f1a5f78a52b Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Mon, 4 Mar 2024 15:28:51 +0100 Subject: [PATCH] feat(MediaSettings): remember silent chat per conversation Signed-off-by: Maksim Sukharev --- src/components/NewMessage/NewMessage.vue | 86 ++++++++++++++++-------- src/init.js | 1 + 2 files changed, 58 insertions(+), 29 deletions(-) diff --git a/src/components/NewMessage/NewMessage.vue b/src/components/NewMessage/NewMessage.vue index 9a0a6ce9ffa4..642d707d23c9 100644 --- a/src/components/NewMessage/NewMessage.vue +++ b/src/components/NewMessage/NewMessage.vue @@ -108,7 +108,7 @@ @tribute-active-false.native="isTributePickerActive = false" @input="handleTyping" @paste="handlePastedFiles" - @submit="handleSubmit({ silent: false })" /> + @submit="handleSubmit" /> @@ -142,29 +142,27 @@ @@ -194,11 +192,13 @@ diff --git a/src/init.js b/src/init.js index 3bd27e51a118..5487d1064401 100644 --- a/src/init.js +++ b/src/init.js @@ -144,6 +144,7 @@ const cleanUnrelatedBrowserStorageKeys = () => { 'audioDisabled_', 'videoDisabled_', 'silentCall_', + 'silentChat_', 'showMediaSettings_', 'virtualBackgroundEnabled_', 'virtualBackgroundType_',