forked from fair/matrix-puppeteer-line
Use longer timeout for outgoing messages
This commit is contained in:
parent
20ec4f92fa
commit
f4bd0ca1c9
@ -781,7 +781,7 @@ export default class MessagesPuppeteer {
|
|||||||
await this._syncChat(chatID)
|
await this._syncChat(chatID)
|
||||||
// TODO Initiate the promise in the content script
|
// TODO Initiate the promise in the content script
|
||||||
await this.page.evaluate(
|
await this.page.evaluate(
|
||||||
() => window.__mautrixController.promiseOwnMessage(5000, "time"))
|
() => window.__mautrixController.promiseOwnMessage(15000, "time"))
|
||||||
|
|
||||||
const input = await this.page.$("#_chat_room_input")
|
const input = await this.page.$("#_chat_room_input")
|
||||||
await this._interactWithPage(async () => {
|
await this._interactWithPage(async () => {
|
||||||
@ -811,7 +811,7 @@ export default class MessagesPuppeteer {
|
|||||||
await this._syncChat(chatID)
|
await this._syncChat(chatID)
|
||||||
await this.page.evaluate(
|
await this.page.evaluate(
|
||||||
() => window.__mautrixController.promiseOwnMessage(
|
() => window.__mautrixController.promiseOwnMessage(
|
||||||
10000, // Use longer timeout for file uploads
|
30000, // Use longer timeout for file uploads
|
||||||
"#_chat_message_success_menu",
|
"#_chat_message_success_menu",
|
||||||
"#_chat_message_fail_menu"))
|
"#_chat_message_fail_menu"))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user