Compare commits

..

No commits in common. "e35082bbea67c8779f49eea18fda0edf029429d9" and "f47bcd3f0c9d7843264900484473866282745c93" have entirely different histories.

2 changed files with 3 additions and 5 deletions

View File

@ -65,15 +65,13 @@ async def whoami(evt: CommandEvent) -> None:
own_info = None own_info = None
except CommandException as e: except CommandException as e:
await evt.reply(f"Error from KakaoTalk: {e}") await evt.reply(f"Error from KakaoTalk: {e}")
return
if own_info: if own_info:
uuid = f"`{own_info.more.uuid}` ({'' if own_info.more.uuidSearchable else 'not '}searchable)" if own_info.more.uuid else "_none_"
await evt.reply( await evt.reply(
f"You're logged in as **{own_info.more.nickName}** (KakaoTalk ID: {uuid}, internal ID: `{evt.sender.ktid}`)" f"You're logged in as `{own_info.more.uuid}` (nickname: {own_info.more.nickName}, user ID: {evt.sender.ktid})."
) )
else: else:
await evt.reply( await evt.reply(
f"You're logged in, but the bridge is unable to retrieve your profile information (internal ID: {evt.sender.ktid})" f"You're logged in, but the bridge is unable to retrieve your profile information (user ID: {evt.sender.ktid})."
) )

View File

@ -598,7 +598,7 @@ export default class PeerClient {
const oAuthClient = await OAuthApiClient.create() const oAuthClient = await OAuthApiClient.create()
const res = await oAuthClient.renew(req.oauth_credential) const res = await oAuthClient.renew(req.oauth_credential)
if (res.success && userClient) { if (res.success && userClient) {
await userClient.setCredential(res.result.credential) await userClient.setCredential(res.result)
} }
return res return res
} }