Skip to content

Update sticker handling#198

Open
jcschefer wants to merge 4 commits intoAlex-Rose:masterfrom
jcschefer:master
Open

Update sticker handling#198
jcschefer wants to merge 4 commits intoAlex-Rose:masterfrom
jcschefer:master

Conversation

@jcschefer
Copy link
Copy Markdown
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
Copy Markdown

@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
Copy Markdown

@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.

2 participants