fix error related to fetching chats
This commit is contained in:
parent
ce9325c257
commit
4f2aa72abd
2 changed files with 3 additions and 3 deletions
|
|
@ -212,7 +212,7 @@ const api = {
|
|||
if (state.mastoUserSocketStatus !== WSConnectionStatus.ERROR) {
|
||||
dispatch('startFetchingTimeline', { timeline: 'friends' })
|
||||
dispatch('startFetchingNotifications')
|
||||
dispatch('startFetchingChats')
|
||||
useChatsStore().startFetchingChats()
|
||||
useInterfaceStore().pushGlobalNotice({
|
||||
level: 'error',
|
||||
messageKey: 'timeline.socket_broke',
|
||||
|
|
@ -234,7 +234,7 @@ const api = {
|
|||
stopMastoUserSocket({ state, dispatch }) {
|
||||
dispatch('startFetchingTimeline', { timeline: 'friends' })
|
||||
dispatch('startFetchingNotifications')
|
||||
dispatch('startFetchingChats')
|
||||
useChatsStore().startFetchingChats()
|
||||
state.mastoUserSocket.close()
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -798,7 +798,7 @@ const users = {
|
|||
|
||||
if (useInstanceCapabilitiesStore().pleromaChatMessagesAvailable) {
|
||||
// Start fetching chats
|
||||
dispatch('startFetchingChats')
|
||||
useChatsStore().startFetchingChats()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue