From 4f2aa72abdb30e2942eadcdb0ad524d7404f335d Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 11 Aug 2026 14:20:56 +0300 Subject: [PATCH] fix error related to fetching chats --- src/modules/api.js | 4 ++-- src/modules/users.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/api.js b/src/modules/api.js index e26336c05..3d223d6cc 100644 --- a/src/modules/api.js +++ b/src/modules/api.js @@ -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() }, diff --git a/src/modules/users.js b/src/modules/users.js index fcbc623bd..a145a80e0 100644 --- a/src/modules/users.js +++ b/src/modules/users.js @@ -798,7 +798,7 @@ const users = { if (useInstanceCapabilitiesStore().pleromaChatMessagesAvailable) { // Start fetching chats - dispatch('startFetchingChats') + useChatsStore().startFetchingChats() } }