mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 06:55:12 +00:00
fix: Start private chat
This commit is contained in:
parent
5d4bc50df9
commit
97bfe01524
2 changed files with 2 additions and 2 deletions
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…
Reference in a new issue