You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Merge pull request #4353 from matrix-org/dbkr/start_presence_after_client_init
Don't try to send presence updates until the client is started
This commit is contained in:
@@ -578,9 +578,6 @@ async function startMatrixClient(startSyncing=true) {
|
|||||||
UserActivity.sharedInstance().start();
|
UserActivity.sharedInstance().start();
|
||||||
TypingStore.sharedInstance().reset(); // just in case
|
TypingStore.sharedInstance().reset(); // just in case
|
||||||
ToastStore.sharedInstance().reset();
|
ToastStore.sharedInstance().reset();
|
||||||
if (!SettingsStore.getValue("lowBandwidth")) {
|
|
||||||
Presence.start();
|
|
||||||
}
|
|
||||||
DMRoomMap.makeShared().start();
|
DMRoomMap.makeShared().start();
|
||||||
IntegrationManagers.sharedInstance().startWatching();
|
IntegrationManagers.sharedInstance().startWatching();
|
||||||
ActiveWidgetStore.start();
|
ActiveWidgetStore.start();
|
||||||
@@ -603,6 +600,11 @@ async function startMatrixClient(startSyncing=true) {
|
|||||||
|
|
||||||
// This needs to be started after crypto is set up
|
// This needs to be started after crypto is set up
|
||||||
DeviceListener.sharedInstance().start();
|
DeviceListener.sharedInstance().start();
|
||||||
|
// Similarly, don't start sending presence updates until we've started
|
||||||
|
// the client
|
||||||
|
if (!SettingsStore.getValue("lowBandwidth")) {
|
||||||
|
Presence.start();
|
||||||
|
}
|
||||||
|
|
||||||
// dispatch that we finished starting up to wire up any other bits
|
// dispatch that we finished starting up to wire up any other bits
|
||||||
// of the matrix client that cannot be set prior to starting up.
|
// of the matrix client that cannot be set prior to starting up.
|
||||||
|
|||||||
Reference in New Issue
Block a user