Commit c6ac03e9 authored by JC Brand's avatar JC Brand

Fix linting errors

parent d32c4c1f
...@@ -26,7 +26,7 @@ import tpl_user_details_modal from "templates/user_details_modal.js"; ...@@ -26,7 +26,7 @@ import tpl_user_details_modal from "templates/user_details_modal.js";
import xss from "xss/dist/xss"; import xss from "xss/dist/xss";
const { Backbone, Strophe, sizzle, dayjs } = converse.env; const { Strophe, sizzle, dayjs } = converse.env;
const u = converse.env.utils; const u = converse.env.utils;
...@@ -721,7 +721,7 @@ converse.plugins.add('converse-chatview', { ...@@ -721,7 +721,7 @@ converse.plugins.add('converse-chatview', {
* Handler that gets called when a new message object is created. * Handler that gets called when a new message object is created.
* @private * @private
* @method _converse.ChatBoxView#onMessageAdded * @method _converse.ChatBoxView#onMessageAdded
* @param { object } message - The message Backbone object that was added. * @param { object } message - The message object that was added.
*/ */
async onMessageAdded (message) { async onMessageAdded (message) {
const id = message.get('id'); const id = message.get('id');
......
...@@ -86,7 +86,7 @@ converse.plugins.add('converse-emoji-views', { ...@@ -86,7 +86,7 @@ converse.plugins.add('converse-emoji-views', {
'autocompleting': value, 'autocompleting': value,
'position': input.selectionStart 'position': input.selectionStart
}, {'silent': true}); }, {'silent': true});
this.emoji_picker_view.filter(value, true); this.emoji_picker_view.filter(value);
this.emoji_dropdown.toggle(); this.emoji_dropdown.toggle();
}, },
...@@ -158,7 +158,7 @@ converse.plugins.add('converse-emoji-views', { ...@@ -158,7 +158,7 @@ converse.plugins.add('converse-emoji-views', {
'onCategoryPicked': ev => this.chooseCategory(ev), 'onCategoryPicked': ev => this.chooseCategory(ev),
'onSearchInputBlurred': ev => this.chatview.emitFocused(ev), 'onSearchInputBlurred': ev => this.chatview.emitFocused(ev),
'onSearchInputKeyDown': ev => this.onKeyDown(ev), 'onSearchInputKeyDown': ev => this.onKeyDown(ev),
'onSearchInputFocus': ev => this.onSearchInputFocus(), 'onSearchInputFocus': ev => this.onSearchInputFocus(ev),
'search_results': this.search_results, 'search_results': this.search_results,
'shouldBeHidden': shortname => this.shouldBeHidden(shortname), 'shouldBeHidden': shortname => this.shouldBeHidden(shortname),
'toned_emojis': _converse.emojis.toned, 'toned_emojis': _converse.emojis.toned,
...@@ -222,7 +222,7 @@ converse.plugins.add('converse-emoji-views', { ...@@ -222,7 +222,7 @@ converse.plugins.add('converse-emoji-views', {
this.navigator.disable(); this.navigator.disable();
}, },
filter (value, set_property) { filter (value) {
const old_query = this.model.get('query'); const old_query = this.model.get('query');
if (!value) { if (!value) {
this.search_results = []; this.search_results = [];
...@@ -281,7 +281,7 @@ converse.plugins.add('converse-emoji-views', { ...@@ -281,7 +281,7 @@ converse.plugins.add('converse-emoji-views', {
if (this.chatview.emoji_dropdown) { if (this.chatview.emoji_dropdown) {
this.chatview.emoji_dropdown.toggle(); this.chatview.emoji_dropdown.toggle();
} }
this.filter('', true); this.filter('');
this.disableArrowNavigation(); this.disableArrowNavigation();
}, },
...@@ -327,7 +327,7 @@ converse.plugins.add('converse-emoji-views', { ...@@ -327,7 +327,7 @@ converse.plugins.add('converse-emoji-views', {
if (ev.target.value) { if (ev.target.value) {
ev.preventDefault(); ev.preventDefault();
const match = find(_converse.emoji_shortnames, sn => _converse.FILTER_CONTAINS(sn, ev.target.value)); const match = find(_converse.emoji_shortnames, sn => _converse.FILTER_CONTAINS(sn, ev.target.value));
match && this.filter(match, true); match && this.filter(match);
} else if (!this.navigator.enabled) { } else if (!this.navigator.enabled) {
this.enableArrowNavigation(ev); this.enableArrowNavigation(ev);
} }
...@@ -413,7 +413,7 @@ converse.plugins.add('converse-emoji-views', { ...@@ -413,7 +413,7 @@ converse.plugins.add('converse-emoji-views', {
this.model.set({'autocompleting': null, 'position': null}); this.model.set({'autocompleting': null, 'position': null});
this.chatview.insertIntoTextArea(target.getAttribute('data-emoji'), replace, false, position); this.chatview.insertIntoTextArea(target.getAttribute('data-emoji'), replace, false, position);
this.chatview.emoji_dropdown.toggle(); this.chatview.emoji_dropdown.toggle();
this.filter('', true); this.filter('');
} }
}); });
......
...@@ -359,7 +359,6 @@ _converse.createStore = function (id, storage) { ...@@ -359,7 +359,6 @@ _converse.createStore = function (id, storage) {
} }
function initPlugins () { function initPlugins () {
// If initialize gets called a second time (e.g. during tests), then we // If initialize gets called a second time (e.g. during tests), then we
// need to re-apply all plugins (for a new converse instance), and we // need to re-apply all plugins (for a new converse instance), and we
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment