fix: Start private chat

onboarding
Krille Fear 3 years ago
parent 5d4bc50df9
commit 97bfe01524

File diff suppressed because one or more lines are too long

@ -29,7 +29,8 @@ class ProfileBottomSheet extends StatelessWidget {
await client.onSync.stream.firstWhere(
(sync) => sync.rooms?.join?.containsKey(roomId) ?? false);
}
if (client.encryptionEnabled) {
final room = client.getRoomById(roomId);
if (client.encryptionEnabled && !room.encrypted) {
await client.getRoomById(roomId).enableEncryption();
}
return roomId;

Loading…
Cancel
Save