1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-07 21:23:00 +03:00

Replace some usages of the MatrixClientPeg in favour of passing it around

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2024-06-20 12:01:55 +01:00
parent f9e2425ac7
commit c0495178e3
5 changed files with 78 additions and 76 deletions

View File

@@ -995,12 +995,12 @@ async function startMatrixClient(
ToastStore.sharedInstance().reset();
DialogOpener.instance.prepare(client);
Notifier.start();
Notifier.start(client);
UserActivity.sharedInstance().start();
DMRoomMap.makeShared(client).start();
IntegrationManagers.sharedInstance().startWatching();
ActiveWidgetStore.instance.start();
LegacyCallHandler.instance.start();
IntegrationManagers.sharedInstance().startWatching(client);
ActiveWidgetStore.instance.start(client);
LegacyCallHandler.instance.start(client);
// Start Mjolnir even though we haven't checked the feature flag yet. Starting
// the thing just wastes CPU cycles, but should result in no actual functionality