mirror of https://github.com/vector-im/riot-web
with output type
parent
5b7e7f49d1
commit
1f0d7923d7
|
@ -17,7 +17,7 @@ interface Room {
|
||||||
roomId: string;
|
roomId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function shieldStatusForMembership(client: Client, room: Room) {
|
export async function shieldStatusForMembership(client: Client, room: Room): Promise<string> {
|
||||||
const members = (await room.getEncryptionTargetMembers()).map(({userId}) => userId);
|
const members = (await room.getEncryptionTargetMembers()).map(({userId}) => userId);
|
||||||
const inDMMap = !!DMRoomMap.shared().getUserIdForRoomId(room.roomId);
|
const inDMMap = !!DMRoomMap.shared().getUserIdForRoomId(room.roomId);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue