forked from AkkomaGang/akkoma-fe
Merge branch 'issues/#465' into 'develop'
update store according to retweeted status Closes #465 See merge request pleroma/pleroma-fe!713
This commit is contained in:
commit
0117f6af9f
1 changed files with 9 additions and 0 deletions
|
@ -363,6 +363,15 @@ export const mutations = {
|
||||||
},
|
},
|
||||||
setRetweeted (state, { status, value }) {
|
setRetweeted (state, { status, value }) {
|
||||||
const newStatus = state.allStatusesObject[status.id]
|
const newStatus = state.allStatusesObject[status.id]
|
||||||
|
|
||||||
|
if (newStatus.repeated !== value) {
|
||||||
|
if (value) {
|
||||||
|
newStatus.repeat_num++
|
||||||
|
} else {
|
||||||
|
newStatus.repeat_num--
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
newStatus.repeated = value
|
newStatus.repeated = value
|
||||||
},
|
},
|
||||||
setDeleted (state, { status }) {
|
setDeleted (state, { status }) {
|
||||||
|
|
Loading…
Reference in a new issue