Skip to content
Snippets Groups Projects
Commit b33667a7 authored by rinpatch's avatar rinpatch :speech_balloon:
Browse files

Avoid iterating over statuses to set thread_muted if the backend does

not support the extension
parent 1a5a7bbe
No related branches found
No related tags found
No related merge requests found
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment