From f4bd0ca1c9a2ce1b06c4369abfb105edb1c46277 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Wed, 7 Jul 2021 01:25:56 -0400 Subject: [PATCH] Use longer timeout for outgoing messages --- puppet/src/puppet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/puppet/src/puppet.js b/puppet/src/puppet.js index c382e69..ea218db 100644 --- a/puppet/src/puppet.js +++ b/puppet/src/puppet.js @@ -781,7 +781,7 @@ export default class MessagesPuppeteer { await this._syncChat(chatID) // TODO Initiate the promise in the content script await this.page.evaluate( - () => window.__mautrixController.promiseOwnMessage(5000, "time")) + () => window.__mautrixController.promiseOwnMessage(15000, "time")) const input = await this.page.$("#_chat_room_input") await this._interactWithPage(async () => { @@ -811,7 +811,7 @@ export default class MessagesPuppeteer { await this._syncChat(chatID) await this.page.evaluate( () => window.__mautrixController.promiseOwnMessage( - 10000, // Use longer timeout for file uploads + 30000, // Use longer timeout for file uploads "#_chat_message_success_menu", "#_chat_message_fail_menu"))