Mark long commands as read
This commit is contained in:
parent
0c9550841c
commit
f8a50f1201
|
@ -128,6 +128,7 @@ async def enter_dv_code(evt: CommandEvent) -> None:
|
||||||
assert(evt.sender.command_status)
|
assert(evt.sender.command_status)
|
||||||
req: dict = evt.sender.command_status["req"]
|
req: dict = evt.sender.command_status["req"]
|
||||||
passcode = evt.content.body
|
passcode = evt.content.body
|
||||||
|
await evt.mark_read()
|
||||||
try:
|
try:
|
||||||
await KakaoTalkClient.register_device(passcode, **req)
|
await KakaoTalkClient.register_device(passcode, **req)
|
||||||
await _do_login(evt, req)
|
await _do_login(evt, req)
|
||||||
|
@ -191,6 +192,7 @@ async def reset_device(evt: CommandEvent) -> None:
|
||||||
if await evt.sender.is_logged_in():
|
if await evt.sender.is_logged_in():
|
||||||
await evt.reply("This command requires you to be logged out.")
|
await evt.reply("This command requires you to be logged out.")
|
||||||
else:
|
else:
|
||||||
|
await evt.mark_read()
|
||||||
await evt.sender.logout(reset_device=True)
|
await evt.sender.logout(reset_device=True)
|
||||||
await evt.reply(
|
await evt.reply(
|
||||||
"Your next login will use a different device ID.\n\n"
|
"Your next login will use a different device ID.\n\n"
|
||||||
|
|
|
@ -71,6 +71,7 @@ async def ping(evt: CommandEvent) -> None:
|
||||||
if not await evt.sender.is_logged_in():
|
if not await evt.sender.is_logged_in():
|
||||||
await evt.reply("You're not logged into KakaoTalk")
|
await evt.reply("You're not logged into KakaoTalk")
|
||||||
return
|
return
|
||||||
|
await evt.mark_read()
|
||||||
# try:
|
# try:
|
||||||
own_info = await evt.sender.get_own_info()
|
own_info = await evt.sender.get_own_info()
|
||||||
# TODO catch errors
|
# TODO catch errors
|
||||||
|
|
Loading…
Reference in New Issue