mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-02 16:14:21 +01:00
fix: Start private chat
This commit is contained in:
parent
5ded9745eb
commit
da68b22cb8
File diff suppressed because one or more lines are too long
@ -29,7 +29,8 @@ class ProfileBottomSheet extends StatelessWidget {
|
|||||||
await client.onSync.stream.firstWhere(
|
await client.onSync.stream.firstWhere(
|
||||||
(sync) => sync.rooms?.join?.containsKey(roomId) ?? false);
|
(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();
|
await client.getRoomById(roomId).enableEncryption();
|
||||||
}
|
}
|
||||||
return roomId;
|
return roomId;
|
||||||
|
Loading…
Reference in New Issue
Block a user