Fix thread muting (#932)

This commit is contained in:
Paul Frazee
2023-06-30 11:38:22 -05:00
committed by GitHub
parent ed5a88d9d8
commit 010588ee7c
3 changed files with 4 additions and 5 deletions
+2 -1
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 {
+1 -1
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')
}
+1 -3
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')
}