Skip to content

feat: support 7TV overrides and emoji-emotes#283

Draft
Nerixyz wants to merge 2 commits into
chatterino7from
feat/seventv-override
Draft

feat: support 7TV overrides and emoji-emotes#283
Nerixyz wants to merge 2 commits into
chatterino7from
feat/seventv-override

Conversation

@Nerixyz
Copy link
Copy Markdown
Collaborator

@Nerixyz Nerixyz commented Oct 24, 2024

  • Supports overrides of emotes (technically for any provider, but only 7TV has that feature)
  • Supports emotes with emojis in their name.
    This changes the parsing a bit (for the better, imo), since we parse emojis after emotes now. The next step would be to correctly set the trailing space if an emoji is found in a word (that's for c2 or if users complain).

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

if (state.hasBits && this->tryAppendCheermote(state, word))
{
// This string was parsed as a cheermote
cursor += word.size() + 1;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

warning: narrowing conversion from 'qsizetype' (aka 'long long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions]

rmote
                            ^

if (this->tryAppendEmote(state.twitchChannel, state.userID, {word}))
{
// Successfully appended an emote
cursor += word.size() + 1;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

warning: narrowing conversion from 'qsizetype' (aka 'long long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions]

emote
                            ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant