fix: put back pangea controller init in chat list (#3965)

This commit is contained in:
ggurdin 2025-09-12 12:05:25 -04:00 committed by GitHub
parent 9e2992a207
commit ee20bc6469
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -43,6 +43,7 @@ import '../../widgets/matrix.dart';
import 'package:fluffychat/utils/tor_stub.dart'
if (dart.library.html) 'package:tor_detector_web/tor_detector_web.dart';
enum PopupMenuAction {
settings,
invite,
@ -1163,6 +1164,7 @@ class ChatListController extends State<ChatList>
// #Pangea
void _initPangeaControllers(Client client) {
MatrixState.pangeaController.initControllers();
if (mounted) {
MatrixState.pangeaController.classController.joinCachedSpaceCode(context);
}

View file

@ -62,7 +62,7 @@ class PangeaController {
PangeaController({required this.matrix, required this.matrixState}) {
_setup();
_setLanguageSubscription();
_initControllers();
initControllers();
randomint = Random().nextInt(2000);
}
@ -75,7 +75,7 @@ class PangeaController {
/// While many of these functions are asynchronous, they are not awaited here,
/// because of order of execution does not matter,
/// and running them at the same times speeds them up.
void _initControllers() {
void initControllers() {
_initAnalyticsControllers();
subscriptionController.initialize();
setPangeaPushRules();
@ -188,7 +188,7 @@ class PangeaController {
break;
case LoginState.loggedIn:
// Initialize analytics data
_initControllers();
initControllers();
_setLanguageSubscription();
userController.reinitialize().then((_) {