fix: put back pangea controller init in chat list (#3965)
This commit is contained in:
parent
9e2992a207
commit
ee20bc6469
2 changed files with 5 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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((_) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue