From f5d16839a6f0b2544025e77001b29b29199cf4c4 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Fri, 11 Mar 2022 20:38:55 -0500 Subject: [PATCH] Minor cleanups --- matrix_appservice_kakaotalk/kt/client/client.py | 3 +-- node/src/client.js | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/matrix_appservice_kakaotalk/kt/client/client.py b/matrix_appservice_kakaotalk/kt/client/client.py index 678e226..7ac9c7e 100644 --- a/matrix_appservice_kakaotalk/kt/client/client.py +++ b/matrix_appservice_kakaotalk/kt/client/client.py @@ -50,7 +50,6 @@ from ..types.request import ( CommandResultDoneValue ) -from .types import ChannelInfoUnion from .types import PortalChannelInfo from .errors import InvalidAccessToken @@ -105,7 +104,7 @@ class Client: @classmethod async def register_device(cls, passcode: str, **req) -> None: """Register a (fake) device that will be associated with the provided login credentials.""" - await cls._api_request_void("register_device", passcode=passcode, **req) + await cls._api_request_void("register_device", passcode=passcode, is_secret=True, **req) @classmethod async def login(cls, **req) -> OAuthCredential: diff --git a/node/src/client.js b/node/src/client.js index e20c40f..457cf2b 100644 --- a/node/src/client.js +++ b/node/src/client.js @@ -62,7 +62,7 @@ class UserClient { this.#initializing = true const userClient = new UserClient(mxid, credential) - userClient.#serviceClient = await ServiceApiClient.create(this.credential) + userClient.#serviceClient = await ServiceApiClient.create(credential) return userClient } @@ -478,7 +478,7 @@ export default class PeerClient { } else { resp.command = "error" resp.error = err.toString() - this.log(`Error handling request ${resp.id} ${err}`) + this.log(`Error handling request ${resp.id} ${err.stack}`) } } await this.#write(resp)