matrix-react-sdk
Version:
SDK for matrix.org using React
13 lines (12 loc) • 436 B
TypeScript
import { MatrixEvent, Room } from "matrix-js-sdk/src/matrix";
/**
* Tests whether a DM room with exactly one third-party invite should be encrypted.
* If it should be encrypted, the third-party invitation event is also returned.
*/
export declare const shouldEncryptRoomWithSingle3rdPartyInvite: (room: Room) => {
shouldEncrypt: true;
inviteEvent: MatrixEvent;
} | {
shouldEncrypt: false;
inviteEvent?: undefined;
};