From 2c026939c39508e457387fc12b60146dfbcbb802 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Thu, 17 Jun 2021 23:59:25 -0400 Subject: [PATCH] Minor formatting fixes --- matrix_puppeteer_line/portal.py | 4 ++-- puppet/src/puppet.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/matrix_puppeteer_line/portal.py b/matrix_puppeteer_line/portal.py index 19dee16..26ac5e1 100644 --- a/matrix_puppeteer_line/portal.py +++ b/matrix_puppeteer_line/portal.py @@ -182,8 +182,8 @@ class Portal(DBPortal, BasePortal): if not msg and self.config["bridge.delivery_error_reports"]: await self.main_intent.send_notice( self.mxid, - "Posting this message to LINE may have failed.", - relates_to=RelatesTo(rel_type=RelationType.REPLY, event_id=event_id)) + "Posting this message to LINE may have failed.", + relates_to=RelatesTo(rel_type=RelationType.REPLY, event_id=event_id)) async def handle_matrix_leave(self, user: 'u.User') -> None: self.log.info(f"{user.mxid} left portal to {self.chat_id}, " diff --git a/puppet/src/puppet.js b/puppet/src/puppet.js index 076779c..a24ad09 100644 --- a/puppet/src/puppet.js +++ b/puppet/src/puppet.js @@ -426,7 +426,7 @@ export default class MessagesPuppeteer { * @return {Promise<[MessageData]>} - The messages visible in the chat. */ async getMessages(chatID) { - return await this.taskQueue.push(async () => this._getMessagesUnsafe(chatID)) + return await this.taskQueue.push(() => this._getMessagesUnsafe(chatID)) } setLastMessageIDs(ids) {