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

/user/@bob:bob.net should start a DM with bob #4034

Closed
lukebarnard1 opened this issue May 26, 2017 · 4 comments
Closed

/user/@bob:bob.net should start a DM with bob #4034

lukebarnard1 opened this issue May 26, 2017 · 4 comments
Assignees

Comments

@lukebarnard1
Copy link
Contributor

Required to do "start DM with RiotBot" button/link nicely

@ara4n
Copy link
Member

ara4n commented May 26, 2017

i agree we need a URL for this, but /user is already used to pull up the MemberInfo for bob, i think. So prolly needs a different prefix.

@uhoreg
Copy link
Member

uhoreg commented May 27, 2017

Another alternative would be to add a query parameter to the link, e.g. /user/@uhoreg:matrix.org?action=chat (see also matrix-org/matrix.to#22 for some thoughts on the matrix.to side)

@uhoreg
Copy link
Member

uhoreg commented May 30, 2017

Also, it should probably have some sort of confirmation screen before starting a DM, otherwise someone could post a message saying Click <a href="/user/@uhoreg:matrix.org?action=chat">here for free money</a>!, and flood me with invite spam.

@lampholder
Copy link
Member

I believe the plan is now to move forward with this.

The behaviour as I understand it will be:

  • click /user/@uhoreg:matrix.org?action=chat
    • if the user is not logged in, show choose a mxid
    • if the user is logged in and has no DM with uhoreg, prompt them asking if they'd like to start one
    • if the user is logged in and has one-or-more DMs with uhoreg, prompt them asking if they'd like to use one of the existing DMs or start a new one

Are there any complexities introduced by the user navigating straight into https://riot.im/app/#/user/@uhoreg:matrix.org?action=chat (i.e. not clicking a link whilst already operating within the app)?

  • if they're not logged in, can we just show them the choose a mxid dialogue? On top of a blank background, or the welcome page?

@lukebarnard1 lukebarnard1 self-assigned this Jun 1, 2017
lukebarnard1 pushed a commit to matrix-org/matrix-react-sdk that referenced this issue Jun 2, 2017
This is a URL that can be used to start a chat with a user.
 - If the user is a guest, setMxId dialog will appear before anything and a defered action will cause `ChatCreateOrReuseDialog` to appear once they've logged in.
 - If the user is registered, they will not see the setMxId dialog.

fixes element-hq/element-web#4034
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants