Fix thread muting (#932)

zio/stable
Paul Frazee 2023-06-30 11:38:22 -05:00 committed by GitHub
parent ed5a88d9d8
commit 010588ee7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View File

@ -61,8 +61,9 @@ export class PostThreadItemModel {
}
return this.post.uri
}
get isThreadMuted() {
return this.rootStore.mutedThreads.uris.has(this.rootUri)
return this.data.isThreadMuted
}
get labelInfo(): PostLabelInfo {

View File

@ -114,7 +114,7 @@ export const PostThreadItem = observer(function PostThreadItem({
try {
await item.toggleThreadMute()
if (item.isThreadMuted) {
Toast.show('You will no longer received notifications for this thread')
Toast.show('You will no longer receive notifications for this thread')
} else {
Toast.show('You will now receive notifications for this thread')
}

View File

@ -178,9 +178,7 @@ const PostLoaded = observer(
try {
await item.toggleThreadMute()
if (item.isThreadMuted) {
Toast.show(
'You will no longer received notifications for this thread',
)
Toast.show('You will no longer receive notifications for this thread')
} else {
Toast.show('You will now receive notifications for this thread')
}