mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-04 01:19:41 +00:00
Replace MatrixClient.isRoomEncrypted by MatrixClient.CryptoApi.isEncryptionEnabledInRoom in Searching.ts
This commit is contained in:
+1
-1
@@ -605,7 +605,7 @@ function eventIndexSearch(
|
|||||||
let searchPromise: Promise<ISearchResults>;
|
let searchPromise: Promise<ISearchResults>;
|
||||||
|
|
||||||
if (roomId !== undefined) {
|
if (roomId !== undefined) {
|
||||||
if (client.isRoomEncrypted(roomId)) {
|
if (client.getCrypto()?.isEncryptionEnabledInRoom(roomId)) {
|
||||||
// The search is for a single encrypted room, use our local
|
// The search is for a single encrypted room, use our local
|
||||||
// search method.
|
// search method.
|
||||||
searchPromise = localSearchProcess(client, term, roomId);
|
searchPromise = localSearchProcess(client, term, roomId);
|
||||||
|
|||||||
Reference in New Issue
Block a user