Fix thread muting (#932)
parent
ed5a88d9d8
commit
010588ee7c
|
@ -61,8 +61,9 @@ export class PostThreadItemModel {
|
||||||
}
|
}
|
||||||
return this.post.uri
|
return this.post.uri
|
||||||
}
|
}
|
||||||
|
|
||||||
get isThreadMuted() {
|
get isThreadMuted() {
|
||||||
return this.rootStore.mutedThreads.uris.has(this.rootUri)
|
return this.data.isThreadMuted
|
||||||
}
|
}
|
||||||
|
|
||||||
get labelInfo(): PostLabelInfo {
|
get labelInfo(): PostLabelInfo {
|
||||||
|
|
|
@ -114,7 +114,7 @@ export const PostThreadItem = observer(function PostThreadItem({
|
||||||
try {
|
try {
|
||||||
await item.toggleThreadMute()
|
await item.toggleThreadMute()
|
||||||
if (item.isThreadMuted) {
|
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 {
|
} else {
|
||||||
Toast.show('You will now receive notifications for this thread')
|
Toast.show('You will now receive notifications for this thread')
|
||||||
}
|
}
|
||||||
|
|
|
@ -178,9 +178,7 @@ const PostLoaded = observer(
|
||||||
try {
|
try {
|
||||||
await item.toggleThreadMute()
|
await item.toggleThreadMute()
|
||||||
if (item.isThreadMuted) {
|
if (item.isThreadMuted) {
|
||||||
Toast.show(
|
Toast.show('You will no longer receive notifications for this thread')
|
||||||
'You will no longer received notifications for this thread',
|
|
||||||
)
|
|
||||||
} else {
|
} else {
|
||||||
Toast.show('You will now receive notifications for this thread')
|
Toast.show('You will now receive notifications for this thread')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue