Commit b33667a7 authored by rinpatch's avatar rinpatch

Avoid iterating over statuses to set thread_muted if the backend does

not support the extension
parent 1a5a7bbe
......@@ -430,7 +430,9 @@ export const mutations = {
const newStatus = state.allStatusesObject[status.id]
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 }) {
const newStatus = state.allStatusesObject[status.id]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment