Minor formatting fixes

This commit is contained in:
Andrew Ferrazzutti 2021-06-17 23:59:25 -04:00
parent f05a91e95d
commit 2c026939c3
2 changed files with 3 additions and 3 deletions

View File

@ -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}, "

View File

@ -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) {