mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-10-18 08:52:00 +00:00
Fix bug tokenizing cheers in messages. Try to fix any bugs getting a user for a room. Strip apollo 404 messages from Sentry. Don't show the expansion arrows in the emote menu when using a filter. Fix emoji tab completion a bit. 🐝
should not match 🍺
. Start using crossorigin for script serving. Add a debug transformation for localization.
This commit is contained in:
parent
730e2129e9
commit
e581b50b08
13 changed files with 133 additions and 18 deletions
|
@ -351,7 +351,7 @@ export default class EmoteMenu extends Module {
|
|||
}
|
||||
|
||||
clickHeading() {
|
||||
if ( this.props.filter )
|
||||
if ( this.props.filtered )
|
||||
return;
|
||||
|
||||
const collapsed = storage.get('emote-menu.collapsed') || [],
|
||||
|
@ -440,7 +440,7 @@ export default class EmoteMenu extends Module {
|
|||
</div>
|
||||
<div class="tw-flex-grow-1" />
|
||||
{data.source || 'FrankerFaceZ'}
|
||||
<figure class={`tw-pd-l-05 ffz-i-${collapsed ? 'left' : 'down'}-dir`} />
|
||||
{filtered ? '' : <figure class={`tw-pd-l-05 ffz-i-${collapsed ? 'left' : 'down'}-dir`} />}
|
||||
</heading>) : null}
|
||||
{collapsed || this.renderBody(show_heading)}
|
||||
</section>)
|
||||
|
|
|
@ -147,13 +147,14 @@ export default class TabCompletion extends Module {
|
|||
getEmojiSuggestions(input, inst) {
|
||||
let search = input.slice(1).toLowerCase();
|
||||
const style = this.chat.context.get('chat.emoji.style'),
|
||||
results = [];
|
||||
results = [],
|
||||
has_colon = search.endsWith(':');
|
||||
|
||||
if ( search.endsWith(':') )
|
||||
search = search.slice(0, -1);
|
||||
if ( has_colon )
|
||||
search = search.slice(0,-1);
|
||||
|
||||
for(const name in this.emoji.names)
|
||||
if ( name.startsWith(search) ) {
|
||||
if ( has_colon ? name === search : name.startsWith(search) ) {
|
||||
const emoji = this.emoji.emoji[this.emoji.names[name]];
|
||||
if ( emoji && (style === 0 || emoji.has[style]) )
|
||||
results.push({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue