fluffychat merge

pull/2245/head
ggurdin 4 months ago
commit 6881565513
No known key found for this signature in database
GPG Key ID: A01CB41737CBB478

@ -42,7 +42,7 @@
> >
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"
android:launchMode="singleInstance" android:launchMode="singleTask"
android:theme="@style/LaunchTheme" android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true" android:hardwareAccelerated="true"

@ -46,6 +46,7 @@ import '../../widgets/matrix.dart';
import 'package:fluffychat/utils/tor_stub.dart' import 'package:fluffychat/utils/tor_stub.dart'
if (dart.library.html) 'package:tor_detector_web/tor_detector_web.dart'; if (dart.library.html) 'package:tor_detector_web/tor_detector_web.dart';
enum PopupMenuAction { enum PopupMenuAction {
settings, settings,
invite, invite,
@ -1177,7 +1178,13 @@ class ChatListController extends State<ChatList>
// if (client.prevBatch == null) { // if (client.prevBatch == null) {
if (client.onSync.value?.nextBatch == null) { if (client.onSync.value?.nextBatch == null) {
// Pangea# // 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 // Display first login bootstrap if enabled
// #Pangea // #Pangea

@ -166,8 +166,7 @@ class HomeserverPickerController extends State<HomeserverPicker> {
isLoading = true; isLoading = true;
}); });
try { try {
final client = await Matrix.of(context).getLoginClient(); await client.login(
client.login(
LoginType.mLoginToken, LoginType.mLoginToken,
token: token, token: token,
initialDeviceDisplayName: PlatformInfos.clientName, initialDeviceDisplayName: PlatformInfos.clientName,

Loading…
Cancel
Save