Semicolons & commas

This commit is contained in:
Andrew Ferrazzutti 2022-04-10 02:19:59 -04:00
parent 2aace35962
commit a7a3ab694e
2 changed files with 6 additions and 6 deletions

View File

@ -673,7 +673,7 @@ class User(DBUser, BaseUser):
portal = await po.Portal.get_by_ktid( portal = await po.Portal.get_by_ktid(
channel_id, channel_id,
kt_receiver=self.ktid, kt_receiver=self.ktid,
kt_type=channel_type kt_type=channel_type,
) )
puppet = await pu.Puppet.get_by_ktid(chat.sender.userId) puppet = await pu.Puppet.get_by_ktid(chat.sender.userId)
await portal.backfill_lock.wait(chat.logId) await portal.backfill_lock.wait(chat.logId)
@ -694,7 +694,7 @@ class User(DBUser, BaseUser):
channel_id, channel_id,
kt_receiver=self.ktid, kt_receiver=self.ktid,
kt_type=channel_type, kt_type=channel_type,
create=False create=False,
) )
if portal and portal.mxid: if portal and portal.mxid:
await portal.backfill_lock.wait(f"redaction of {chat_id}") await portal.backfill_lock.wait(f"redaction of {chat_id}")

View File

@ -48,13 +48,13 @@ ServiceApiClient.prototype.requestFriendList = async function() {
{ {
phone_number_type: 1, phone_number_type: 1,
} }
); )
return { return {
status: res.status, status: res.status,
success: res.status === 0, success: res.status === 0,
result: res, result: res,
}; }
} }
@ -93,7 +93,7 @@ class UserClient {
}) })
this.#talkClient.on("chat_deleted", (feedChatlog, channel, feed) => { this.#talkClient.on("chat_deleted", (feedChatlog, channel, feed) => {
this.log(`${feed.logId} deleted in channel ${channel.channelId} by user ${feedChatlog.sender.userId}`); this.log(`${feed.logId} deleted in channel ${channel.channelId} by user ${feedChatlog.sender.userId}`)
return this.write("chat_deleted", { return this.write("chat_deleted", {
chatId: feed.logId, chatId: feed.logId,
senderId: feedChatlog.sender.userId, senderId: feedChatlog.sender.userId,
@ -104,7 +104,7 @@ class UserClient {
}) })
this.#talkClient.on("message_hidden", (hideLog, channel, feed) => { this.#talkClient.on("message_hidden", (hideLog, channel, feed) => {
this.log(`Message ${hideLog.logId} hid from channel ${channel.channelId} by user ${hideLog.sender.userId}`); this.log(`Message ${hideLog.logId} hid from channel ${channel.channelId} by user ${hideLog.sender.userId}`)
return this.write("chat_deleted", { return this.write("chat_deleted", {
chatId: feed.logId, chatId: feed.logId,
senderId: hideLog.sender.userId, senderId: hideLog.sender.userId,