From 2e67695645e719d0ad0e76f79910c04cde483cd5 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Mon, 5 Feb 2024 08:58:53 +0100 Subject: [PATCH] fix: Remove status msg not changeable from old cache --- lib/widgets/matrix.dart | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/lib/widgets/matrix.dart b/lib/widgets/matrix.dart index 9f98931b..b8ce1613 100644 --- a/lib/widgets/matrix.dart +++ b/lib/widgets/matrix.dart @@ -187,26 +187,6 @@ class MatrixState extends State with WidgetsBindingObserver { final StreamController?> onShareContentChanged = StreamController.broadcast(); - void _initWithStore() async { - try { - if (client.isLogged()) { - // TODO: Figure out how this works in multi account - final statusMsg = store.getString(SettingKeys.ownStatusMessage); - if (statusMsg?.isNotEmpty ?? false) { - Logs().v('Send cached status message: "$statusMsg"'); - await client.setPresence( - client.userID!, - PresenceType.online, - statusMsg: statusMsg, - ); - } - } - } catch (e, s) { - client.onLoginStateChanged.addError(e, s); - rethrow; - } - } - final onRoomKeyRequestSub = {}; final onKeyVerificationRequestSub = {}; final onNotification = {}; @@ -365,8 +345,6 @@ class MatrixState extends State with WidgetsBindingObserver { } void initMatrix() { - _initWithStore(); - for (final c in widget.clients) { _registerSubs(c.clientName); }