|
|
|
|
@ -46,6 +46,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,
|
|
|
|
|
@ -1177,7 +1178,13 @@ class ChatListController extends State<ChatList>
|
|
|
|
|
// if (client.prevBatch == null) {
|
|
|
|
|
if (client.onSync.value?.nextBatch == null) {
|
|
|
|
|
// Pangea#
|
|
|
|
|
await client.onSync.stream.first;
|
|
|
|
|
await client.onSyncStatus.stream
|
|
|
|
|
.firstWhere((status) => status.status == SyncStatus.finished);
|
|
|
|
|
|
|
|
|
|
if (!mounted) return;
|
|
|
|
|
setState(() {
|
|
|
|
|
waitForFirstSync = true;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Display first login bootstrap if enabled
|
|
|
|
|
// #Pangea
|
|
|
|
|
|