Merge pull request #922 from h3poteto/iss-920
closes #920 Unbind streaming for mentions when change accounts
This commit is contained in:
commit
3316d6a0a9
|
@ -120,6 +120,7 @@ const actions: ActionTree<TimelineSpaceState, RootState> = {
|
|||
await dispatch('fetchContentsTimelines', account).catch(_ => {
|
||||
throw new TimelineFetchError()
|
||||
})
|
||||
await dispatch('unbindStreamings')
|
||||
await dispatch('bindStreamings', account)
|
||||
dispatch('startStreamings', account)
|
||||
dispatch('fetchEmojis', account)
|
||||
|
@ -415,6 +416,7 @@ const actions: ActionTree<TimelineSpaceState, RootState> = {
|
|||
},
|
||||
unbindUserStreaming: () => {
|
||||
ipcRenderer.removeAllListeners('update-start-user-streaming')
|
||||
ipcRenderer.removeAllListeners('mention-start-user-streaming')
|
||||
ipcRenderer.removeAllListeners('notification-start-user-streaming')
|
||||
ipcRenderer.removeAllListeners('error-start-user-streaming')
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue