Add context for toast messages (#7902)

* add context for toast

* add
This commit is contained in:
Minseo Lee
2025-03-07 02:46:09 +09:00
committed by GitHub
parent 29eef6188a
commit a7db0bac6f
22 changed files with 64 additions and 48 deletions
+2 -2
View File
@@ -173,9 +173,9 @@ function MenuContent({
const {mutate: muteConvo} = useMuteConvo(convoId, {
onSuccess: data => {
if (data.convo.muted) {
Toast.show(_(msg`Chat muted`))
Toast.show(_(msg({message: 'Chat muted', context: 'toast'})))
} else {
Toast.show(_(msg`Chat unmuted`))
Toast.show(_(msg({message: 'Chat unmuted', context: 'toast'})))
}
},
onError: () => {