make roomIds *only* a Set

This commit is contained in:
jesopo 2022-02-02 13:16:53 +00:00
parent 102db71df3
commit 36801698f4

View File

@ -179,7 +179,7 @@ export async function getMessagesByUserIn(client: MatrixClient, sender: string,
}
}
export async function replaceRoomIdsWithPills(client: MatrixClient, text: string, roomIds: Set<string> | string, msgtype: MessageType = "m.text"): Promise<TextualMessageEventContent> {
export async function replaceRoomIdsWithPills(client: MatrixClient, text: string, roomIds: Set<string>, msgtype: MessageType = "m.text"): Promise<TextualMessageEventContent> {
const content: TextualMessageEventContent = {
body: text,
formatted_body: htmlEscape(text),