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 right click option to public chat messages to copy pubkey of sender #387

Merged
merged 1 commit into from
Sep 2, 2019
Merged

Add right click option to public chat messages to copy pubkey of sender #387

merged 1 commit into from
Sep 2, 2019

Conversation

BeaudanBrown
Copy link

Add option to copy pubkey from public chat messages so you can easily add friends from the chat

if (this.isIncoming()) {
clipboard.writeText(this.get('source'));
} else {
clipboard.writeText(this.OUR_NUMBER);

Choose a reason for hiding this comment

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

What would the source be for a non-incoming message?
Asking to see if it's worth differentiating incoming/outgoing or no...

Copy link
Author

Choose a reason for hiding this comment

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

It was undefined and was causing writeText to error
Come to think of it maybe I should double check the source is defined anyway

@BeaudanBrown BeaudanBrown merged commit 6387c93 into oxen-io:public-chat Sep 2, 2019
@BeaudanBrown BeaudanBrown deleted the copy-public-key branch September 2, 2019 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants