fix: Dont enable encryption with bots
This commit is contained in:
parent
318c72b5ea
commit
fcb9629525
4 changed files with 2 additions and 41 deletions
|
|
@ -27,14 +27,6 @@ class ProfileBottomSheet extends StatelessWidget {
|
|||
context: context,
|
||||
future: () async {
|
||||
final roomId = await client.startDirectChat(userId);
|
||||
if (client.getRoomById(roomId) == null) {
|
||||
await client.onSync.stream.firstWhere(
|
||||
(sync) => sync.rooms?.join?.containsKey(roomId) ?? false);
|
||||
}
|
||||
final room = client.getRoomById(roomId);
|
||||
if (client.encryptionEnabled && !room.encrypted) {
|
||||
await client.getRoomById(roomId).enableEncryption();
|
||||
}
|
||||
return roomId;
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue