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

Add system to directly open private chat with a user through URL #97

Closed
AnthyG opened this issue Nov 23, 2017 · 1 comment
Closed

Add system to directly open private chat with a user through URL #97

AnthyG opened this issue Nov 23, 2017 · 1 comment
Assignees

Comments

@AnthyG
Copy link
Owner

AnthyG commented Nov 23, 2017

This could enable a ZeroMail-like experience/ link, that could be shared everywhere to open up the private chat with that user.

If the zite then detects that the said URL is set (e.g. ?PC=[USER_CERT_ID], then the following code just needs to be executed, and the chat is open:

page.addPrivateContact(cert_user_id, page.genContactsList)
page.loadPrivateMessages('selected user', true, cert_user_id)
$('#private_recipient').val(cert_user_id)
@AnthyG
Copy link
Owner Author

AnthyG commented Dec 2, 2017

Added with commit b1d9fec

@AnthyG AnthyG closed this as completed Dec 2, 2017
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

1 participant