mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-02-01 01:47:01 +01:00
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(_ => {
|
await dispatch('fetchContentsTimelines', account).catch(_ => {
|
||||||
throw new TimelineFetchError()
|
throw new TimelineFetchError()
|
||||||
})
|
})
|
||||||
|
await dispatch('unbindStreamings')
|
||||||
await dispatch('bindStreamings', account)
|
await dispatch('bindStreamings', account)
|
||||||
dispatch('startStreamings', account)
|
dispatch('startStreamings', account)
|
||||||
dispatch('fetchEmojis', account)
|
dispatch('fetchEmojis', account)
|
||||||
@ -415,6 +416,7 @@ const actions: ActionTree<TimelineSpaceState, RootState> = {
|
|||||||
},
|
},
|
||||||
unbindUserStreaming: () => {
|
unbindUserStreaming: () => {
|
||||||
ipcRenderer.removeAllListeners('update-start-user-streaming')
|
ipcRenderer.removeAllListeners('update-start-user-streaming')
|
||||||
|
ipcRenderer.removeAllListeners('mention-start-user-streaming')
|
||||||
ipcRenderer.removeAllListeners('notification-start-user-streaming')
|
ipcRenderer.removeAllListeners('notification-start-user-streaming')
|
||||||
ipcRenderer.removeAllListeners('error-start-user-streaming')
|
ipcRenderer.removeAllListeners('error-start-user-streaming')
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user