forked from srxl/akkoma-fe
Avoid iterating over statuses to set thread_muted if the backend does
not support the extension
This commit is contained in:
parent
1a5a7bbebf
commit
b33667a743
1 changed files with 3 additions and 1 deletions
|
@ -430,7 +430,9 @@ export const mutations = {
|
||||||
const newStatus = state.allStatusesObject[status.id]
|
const newStatus = state.allStatusesObject[status.id]
|
||||||
newStatus.thread_muted = status.thread_muted
|
newStatus.thread_muted = status.thread_muted
|
||||||
|
|
||||||
state.conversationsObject[newStatus.statusnet_conversation_id].forEach(status => { status.thread_muted = newStatus.thread_muted })
|
if (newStatus.thread_muted !== undefined) {
|
||||||
|
state.conversationsObject[newStatus.statusnet_conversation_id].forEach(status => { status.thread_muted = newStatus.thread_muted })
|
||||||
|
}
|
||||||
},
|
},
|
||||||
setRetweeted (state, { status, value }) {
|
setRetweeted (state, { status, value }) {
|
||||||
const newStatus = state.allStatusesObject[status.id]
|
const newStatus = state.allStatusesObject[status.id]
|
||||||
|
|
Loading…
Reference in a new issue