On securejoin, send help message
This commit is contained in:
parent
18bda67779
commit
12c671387b
|
|
@ -56,6 +56,11 @@ def cleanup(event):
|
||||||
if event.kind == EventType.MSG_DELIVERED or event.kind == EventType.MSG_FAILED:
|
if event.kind == EventType.MSG_DELIVERED or event.kind == EventType.MSG_FAILED:
|
||||||
msg = Message(event.account, event.msg_id).get_snapshot()
|
msg = Message(event.account, event.msg_id).get_snapshot()
|
||||||
delete_data(msg)
|
delete_data(msg)
|
||||||
|
if event.kind == EventType.SECUREJOIN_INVITER_PROGRESS:
|
||||||
|
if event.progress == 1000:
|
||||||
|
contact = event.account.create_contact(event.contact_id)
|
||||||
|
chat = contact.create_chat()
|
||||||
|
chat.send_text(HELP_MSG)
|
||||||
|
|
||||||
|
|
||||||
def delete_data(msg):
|
def delete_data(msg):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue