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

Update sticker handling #198

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

jcschefer
Copy link
Contributor

I noticed that when I when I was logged in and someone sent me a sticker, no hint of a new message appeared on the screen. Upon starting up or refreshing, stickers appeared as a blank message line. I send and receive a lot of stickers, so this kind of bugged me. This change updates the handling of stickers to display the message snippet as well as a description of the sticker, if available.

Copy link

@p1ho p1ho left a comment

Choose a reason for hiding this comment

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

Just a single suggestion. I think this is great, and I hope it gets merged soon.

? message.sticker.label
: 'sticker';

msg += `${' [ '.red + label } ${ x.cyan }${' ]'.red}`;
Copy link

@p1ho p1ho May 24, 2019

Choose a reason for hiding this comment

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

I would add this line right after, so you can use /v {attsNo} (like /v 0) to view the sticker in browser

atts[attsNo] = message.sticker.url;

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.

None yet

2 participants