From 25febe6d5867e109b38be299618ad89147689dcc Mon Sep 17 00:00:00 2001 From: Narasimha-sc <166327228+Narasimha-sc@users.noreply.github.com> Date: Sat, 17 Oct 2026 16:26:13 +0000 Subject: [PATCH] android, desktop: show the open chat's mute state in the chat menu The mute item of the chat header menu kept the mute state it first saw: after switching chats, such as opening a member's direct chat from a group, it offered the previous chat's next mode, and it missed muting done elsewhere, such as from the chat info. Read the item's next mode from the chat's own setting. --- .../kotlin/chat/simplex/common/views/chat/ChatView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt index e9dbb3b157..eb0d9f53b4 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt @@ -1356,7 +1356,7 @@ fun BoxScope.ChatInfoToolbar( val enableNtfs = chatInfo.chatSettings?.enableNtfs if (((chatInfo is ChatInfo.Direct && chatInfo.contact.ready && chatInfo.contact.active) || chatInfo is ChatInfo.Group) && enableNtfs != null) { val ntfMode = remember { mutableStateOf(enableNtfs) } - val nextNtfMode by remember { derivedStateOf { ntfMode.value.nextMode(chatInfo.hasMentions) } } + val nextNtfMode = enableNtfs.nextMode(chatInfo.hasMentions) menuItems.add { ItemAction( stringResource(nextNtfMode.text(chatInfo.hasMentions)),