Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: paste invite link to search to add contact #4041

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

WofWca
Copy link
Collaborator

@WofWca WofWca commented Jul 19, 2024

Adds a pseudo item similar to "add contact" when you type an email

The "standard" way of pasting the invite link under the gear button
on the second tab of the "scan QR" dialog is not very straigtforward.

The first reflex is to paste it in the search field,
so let's handle this.

image

@WofWca WofWca force-pushed the handle-invite-link-from-search-input branch 3 times, most recently from e22d05e to e87a8d4 Compare July 19, 2024 15:50
Copy link
Member

@Simon-Laux Simon-Laux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code LGTM, didn't test

Comment on lines +131 to +132
// Perhaps we could also parse username from the link
// and put it into `subText`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great idea

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think rpc.checkQr should work for that, like it gets the name for the confirmation dialog when it asks you wether you want to chat with <Name>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be improved in another PR. It would be nice to show both, the displayname & the mail address since the random testrun.org addresses are usually not known, only the displayname

Adds a pseudo item similar to "add contact" when you type an email

The "standard" way of pasting the invite link under the gear button
on the second tab of the "scan QR" dialog is not very straigtforward.

The first reflex is to paste it in the search field,
so let's handle this.
@WofWca WofWca force-pushed the handle-invite-link-from-search-input branch from e87a8d4 to d996e0b Compare July 22, 2024 12:05
@nicodh nicodh merged commit 6980cf3 into main Jul 24, 2024
7 checks passed
@nicodh nicodh deleted the handle-invite-link-from-search-input branch July 24, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants