Eliminate the use of MatrixClientPeg in utils (#10910)
This commit is contained in:
parent
a0c2676c38
commit
30429df948
108 changed files with 409 additions and 325 deletions
|
@ -27,7 +27,7 @@ export const shouldEncryptRoomWithSingle3rdPartyInvite = (
|
|||
room: Room,
|
||||
): { shouldEncrypt: true; inviteEvent: MatrixEvent } | { shouldEncrypt: false; inviteEvent?: undefined } => {
|
||||
// encryption not promoted via .well-known
|
||||
if (!privateShouldBeEncrypted()) return { shouldEncrypt: false };
|
||||
if (!privateShouldBeEncrypted(room.client)) return { shouldEncrypt: false };
|
||||
|
||||
// not a DM room
|
||||
if (!DMRoomMap.shared().getRoomIds().has(room.roomId)) return { shouldEncrypt: false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue