fix error related to fetching chats

This commit is contained in:
Henry Jameson 2026-08-11 14:20:56 +03:00
commit 4f2aa72abd
2 changed files with 3 additions and 3 deletions

View file

@ -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()
},

View file

@ -798,7 +798,7 @@ const users = {
if (useInstanceCapabilitiesStore().pleromaChatMessagesAvailable) {
// Start fetching chats
dispatch('startFetchingChats')
useChatsStore().startFetchingChats()
}
}