From 4c9912aa604af346978f126fe030b844aa6355e2 Mon Sep 17 00:00:00 2001 From: Kelrap Date: Tue, 20 May 2025 14:44:25 -0400 Subject: [PATCH] Remove login firebase setup, restore chat list firebase setup --- lib/pages/chat_list/chat_list.dart | 4 +--- lib/utils/background_push.dart | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/pages/chat_list/chat_list.dart b/lib/pages/chat_list/chat_list.dart index 103d6ecfb..30b500845 100644 --- a/lib/pages/chat_list/chat_list.dart +++ b/lib/pages/chat_list/chat_list.dart @@ -488,9 +488,7 @@ class ChatListController extends State if (mounted) { searchServer = Matrix.of(context).store.getString(_serverStoreNamespace); - // #Pangea - // Matrix.of(context).backgroundPush?.setupPush(); - // Pangea# + Matrix.of(context).backgroundPush?.setupPush(); UpdateNotifier.showUpdateSnackBar(context); // #Pangea AppVersionUtil.showAppVersionDialog(context); diff --git a/lib/utils/background_push.dart b/lib/utils/background_push.dart index 9553c4a2e..b5772c961 100644 --- a/lib/utils/background_push.dart +++ b/lib/utils/background_push.dart @@ -81,8 +81,6 @@ class BackgroundPush { void _init() async { try { // #Pangea - onLogin ??= - client.onLoginStateChanged.stream.listen(handleLoginStateChanged); FirebaseMessaging.instance.getInitialMessage().then(_onOpenNotification); FirebaseMessaging.onMessageOpenedApp.listen(_onOpenNotification); // Pangea#