Fix thread muting (#932)
parent
ed5a88d9d8
commit
010588ee7c
|
@ -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 {
|
||||
|
|
|
@ -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')
|
||||
}
|
||||
|
|
|
@ -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')
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue