Skip to content

Commit

Permalink
fix: invite links don't work; simply return openpgp4fpr instead
Browse files Browse the repository at this point in the history
  • Loading branch information
missytake committed Apr 30, 2024
1 parent 8562557 commit 9faeb7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/team_bot/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ def generate_invite(account: deltachat.Account) -> str:
:return: the invite link, e.g.: https://i.delta.chat
"""
openpgp4fpr = account.get_setup_contact_qr()
invite = "https://i.delta.chat/#" + openpgp4fpr[12::]
return invite
return account.get_setup_contact_qr()


def start_chat(
Expand Down
6 changes: 3 additions & 3 deletions tests/test_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,11 @@ def test_public_invite(relaycrew, outsider):
crew.send_text("/generate-invite")
result = relaycrew.user._evtracker.wait_next_incoming_message()
# assert result.filename
assert result.text.startswith("https://i.delta.chat")
# assert result.text.startswith("https://i.delta.chat")

# qr = result.filename
invite = "OPENPGP4FPR:" + result.text[22::]
chat = outsider.qr_setup_contact(invite)
# invite = "OPENPGP4FPR:" + result.text[22::]
chat = outsider.qr_setup_contact(result.text)
outsider._evtracker.wait_securejoin_joiner_progress(1000)

while not chat.is_protected():
Expand Down

0 comments on commit 9faeb7c

Please sign in to comment.