fix: Start private chat

This commit is contained in:
Krille Fear 2021-10-20 11:34:36 +02:00
parent 5ded9745eb
commit da68b22cb8
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -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;