Merge pull request #11 from matrix-org/bwindels/increasetimeout2

increase receive message timeout
This commit is contained in:
Bruno Windels 2018-08-15 15:17:42 +02:00 committed by GitHub
commit c49f1b33fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ module.exports = async function receiveMessage(session, message) {
} }
}); });
// wait a bit for the incoming event to be rendered // wait a bit for the incoming event to be rendered
await session.delay(300); await session.delay(500);
let lastTile = await session.query(".mx_EventTile_last"); let lastTile = await session.query(".mx_EventTile_last");
const senderElement = await lastTile.$(".mx_SenderProfile_name"); const senderElement = await lastTile.$(".mx_SenderProfile_name");
const bodyElement = await lastTile.$(".mx_EventTile_body"); const bodyElement = await lastTile.$(".mx_EventTile_body");