Minor cleanups
This commit is contained in:
parent
c48952a9fa
commit
f5d16839a6
@ -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:
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user