Remove login firebase setup, restore chat list firebase setup

pull/2245/head
Kelrap 6 months ago
parent ceb1af2631
commit 4c9912aa60

@ -488,9 +488,7 @@ class ChatListController extends State<ChatList>
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);

@ -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#

Loading…
Cancel
Save