Skip to content
Snippets Groups Projects
Unverified Commit 80aa3375 authored by R Midhun Suresh's avatar R Midhun Suresh
Browse files

Pass argument properly in client

parent 4414c768
No related merge requests found
...@@ -116,9 +116,12 @@ export class ElementClientPage { ...@@ -116,9 +116,12 @@ export class ElementClientPage {
*/ */
async inviteUser(roomId: string, userId: string): Promise<{}> { async inviteUser(roomId: string, userId: string): Promise<{}> {
const handle = await this.getClientHandle(); const handle = await this.getClientHandle();
const res = await handle.evaluate(async (client, userId) => { const res = await handle.evaluate(
async (client, { roomId, userId }) => {
return await client.invite(roomId, userId); return await client.invite(roomId, userId);
}, userId); },
{ roomId, userId },
);
console.log(`sent invite in ${roomId} for ${userId}`); console.log(`sent invite in ${roomId} for ${userId}`);
return res; return res;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment