fix: Dont enable encryption with bots
This commit is contained in:
parent
318c72b5ea
commit
fcb9629525
4 changed files with 2 additions and 41 deletions
|
|
@ -253,17 +253,6 @@ class SearchView extends StatelessWidget {
|
|||
final client = Matrix.of(context).client;
|
||||
final roomId = await client
|
||||
.startDirectChat(foundProfile.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