queryAll, not just query

pull/21833/head
Travis Ralston 2020-07-07 16:48:03 -06:00
parent 9000888013
commit 9bf2505e51
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ const {findSublist} = require("./create-room");
module.exports = async function acceptInvite(session, name) {
session.log.step(`accepts "${name}" invite`);
const inviteSublist = await findSublist(session, "invites");
const invitesHandles = await inviteSublist.$(".mx_RoomTile2_name");
const invitesHandles = await inviteSublist.$$(".mx_RoomTile2_name");
const invitesWithText = await Promise.all(invitesHandles.map(async (inviteHandle) => {
const text = await session.innerText(inviteHandle);
return {inviteHandle, text};