forked from missytake/team-bot
fix: invite links don't work; simply return openpgp4fpr instead
This commit is contained in:
parent
85625578a8
commit
9faeb7cdce
|
@ -69,9 +69,7 @@ def generate_invite(account: deltachat.Account) -> str:
|
||||||
|
|
||||||
:return: the invite link, e.g.: https://i.delta.chat
|
:return: the invite link, e.g.: https://i.delta.chat
|
||||||
"""
|
"""
|
||||||
openpgp4fpr = account.get_setup_contact_qr()
|
return account.get_setup_contact_qr()
|
||||||
invite = "https://i.delta.chat/#" + openpgp4fpr[12::]
|
|
||||||
return invite
|
|
||||||
|
|
||||||
|
|
||||||
def start_chat(
|
def start_chat(
|
||||||
|
|
|
@ -278,11 +278,11 @@ def test_public_invite(relaycrew, outsider):
|
||||||
crew.send_text("/generate-invite")
|
crew.send_text("/generate-invite")
|
||||||
result = relaycrew.user._evtracker.wait_next_incoming_message()
|
result = relaycrew.user._evtracker.wait_next_incoming_message()
|
||||||
# assert result.filename
|
# assert result.filename
|
||||||
assert result.text.startswith("https://i.delta.chat")
|
# assert result.text.startswith("https://i.delta.chat")
|
||||||
|
|
||||||
# qr = result.filename
|
# qr = result.filename
|
||||||
invite = "OPENPGP4FPR:" + result.text[22::]
|
# invite = "OPENPGP4FPR:" + result.text[22::]
|
||||||
chat = outsider.qr_setup_contact(invite)
|
chat = outsider.qr_setup_contact(result.text)
|
||||||
outsider._evtracker.wait_securejoin_joiner_progress(1000)
|
outsider._evtracker.wait_securejoin_joiner_progress(1000)
|
||||||
|
|
||||||
while not chat.is_protected():
|
while not chat.is_protected():
|
||||||
|
|
Loading…
Reference in a new issue