Merge pull request #919 from h3poteto/fix-872
refs #872 Fix favourite and reblog event
This commit is contained in:
commit
58c9a0a61a
|
@ -450,10 +450,10 @@ const actions: ActionTree<TimelineSpaceState, RootState> = {
|
|||
commit('TimelineSpace/Contents/DirectMessages/updateToot', status, { root: true })
|
||||
}
|
||||
if (state.unreadNotification.local) {
|
||||
commit('TimelineSpace/Contents/Local/updateToot', state, { root: true })
|
||||
commit('TimelineSpace/Contents/Local/updateToot', status, { root: true })
|
||||
}
|
||||
if (state.unreadNotification.public) {
|
||||
commit('TimelineSpace/Contents/Public/updateToot', state, { root: true })
|
||||
commit('TimelineSpace/Contents/Public/updateToot', status, { root: true })
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ const actions: ActionTree<TootState, RootState> = {
|
|||
// Reblog target status is in the data.reblog.
|
||||
// So I send data.reblog as status for update local timeline.
|
||||
ipcRenderer.send('fav-rt-action-sound')
|
||||
dispatch('TimelineSpace/updateTootForAllTimelines', res.data, { root: true })
|
||||
dispatch('TimelineSpace/updateTootForAllTimelines', res.data.reblog, { root: true })
|
||||
return res.data.reblog
|
||||
},
|
||||
unreblog: async ({ rootState, dispatch }, message: Status) => {
|
||||
|
|
Loading…
Reference in New Issue