diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-06-30 11:38:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-30 11:38:22 -0500 |
commit | 010588ee7c4064d01b10e75a69ac5e89ae839233 (patch) | |
tree | c26da1e6a82bbbee8bf18f016c52ef90002e0421 /src | |
parent | ed5a88d9d807c471a548bd9f23e0dcbf60c6cf6e (diff) | |
download | voidsky-010588ee7c4064d01b10e75a69ac5e89ae839233.tar.zst |
Fix thread muting (#932)
Diffstat (limited to 'src')
-rw-r--r-- | src/state/models/content/post-thread-item.ts | 3 | ||||
-rw-r--r-- | src/view/com/post-thread/PostThreadItem.tsx | 2 | ||||
-rw-r--r-- | src/view/com/post/Post.tsx | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/src/state/models/content/post-thread-item.ts b/src/state/models/content/post-thread-item.ts index c33415507..9b8f42b3b 100644 --- a/src/state/models/content/post-thread-item.ts +++ b/src/state/models/content/post-thread-item.ts @@ -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 { diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index 692fac9e9..c691e7f36 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -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') } diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx index fac27b842..c74abb894 100644 --- a/src/view/com/post/Post.tsx +++ b/src/view/com/post/Post.tsx @@ -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') } |