Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
c6ac03e9
Commit
c6ac03e9
authored
Jan 26, 2020
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix linting errors
parent
d32c4c1f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
src/converse-chatview.js
src/converse-chatview.js
+2
-2
src/converse-emoji-views.js
src/converse-emoji-views.js
+6
-6
src/headless/converse-core.js
src/headless/converse-core.js
+0
-1
No files found.
src/converse-chatview.js
View file @
c6ac03e9
...
...
@@ -26,7 +26,7 @@ import tpl_user_details_modal from "templates/user_details_modal.js";
import
xss
from
"
xss/dist/xss
"
;
const
{
Backbone
,
Strophe
,
sizzle
,
dayjs
}
=
converse
.
env
;
const
{
Strophe
,
sizzle
,
dayjs
}
=
converse
.
env
;
const
u
=
converse
.
env
.
utils
;
...
...
@@ -721,7 +721,7 @@ converse.plugins.add('converse-chatview', {
* Handler that gets called when a new message object is created.
* @private
* @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
)
{
const
id
=
message
.
get
(
'
id
'
);
...
...
src/converse-emoji-views.js
View file @
c6ac03e9
...
...
@@ -86,7 +86,7 @@ converse.plugins.add('converse-emoji-views', {
'
autocompleting
'
:
value
,
'
position
'
:
input
.
selectionStart
},
{
'
silent
'
:
true
});
this
.
emoji_picker_view
.
filter
(
value
,
true
);
this
.
emoji_picker_view
.
filter
(
value
);
this
.
emoji_dropdown
.
toggle
();
},
...
...
@@ -158,7 +158,7 @@ converse.plugins.add('converse-emoji-views', {
'
onCategoryPicked
'
:
ev
=>
this
.
chooseCategory
(
ev
),
'
onSearchInputBlurred
'
:
ev
=>
this
.
chatview
.
emitFocused
(
ev
),
'
onSearchInputKeyDown
'
:
ev
=>
this
.
onKeyDown
(
ev
),
'
onSearchInputFocus
'
:
ev
=>
this
.
onSearchInputFocus
(),
'
onSearchInputFocus
'
:
ev
=>
this
.
onSearchInputFocus
(
ev
),
'
search_results
'
:
this
.
search_results
,
'
shouldBeHidden
'
:
shortname
=>
this
.
shouldBeHidden
(
shortname
),
'
toned_emojis
'
:
_converse
.
emojis
.
toned
,
...
...
@@ -222,7 +222,7 @@ converse.plugins.add('converse-emoji-views', {
this
.
navigator
.
disable
();
},
filter
(
value
,
set_property
)
{
filter
(
value
)
{
const
old_query
=
this
.
model
.
get
(
'
query
'
);
if
(
!
value
)
{
this
.
search_results
=
[];
...
...
@@ -281,7 +281,7 @@ converse.plugins.add('converse-emoji-views', {
if
(
this
.
chatview
.
emoji_dropdown
)
{
this
.
chatview
.
emoji_dropdown
.
toggle
();
}
this
.
filter
(
''
,
true
);
this
.
filter
(
''
);
this
.
disableArrowNavigation
();
},
...
...
@@ -327,7 +327,7 @@ converse.plugins.add('converse-emoji-views', {
if
(
ev
.
target
.
value
)
{
ev
.
preventDefault
();
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
)
{
this
.
enableArrowNavigation
(
ev
);
}
...
...
@@ -413,7 +413,7 @@ converse.plugins.add('converse-emoji-views', {
this
.
model
.
set
({
'
autocompleting
'
:
null
,
'
position
'
:
null
});
this
.
chatview
.
insertIntoTextArea
(
target
.
getAttribute
(
'
data-emoji
'
),
replace
,
false
,
position
);
this
.
chatview
.
emoji_dropdown
.
toggle
();
this
.
filter
(
''
,
true
);
this
.
filter
(
''
);
}
});
...
...
src/headless/converse-core.js
View file @
c6ac03e9
...
...
@@ -359,7 +359,6 @@ _converse.createStore = function (id, storage) {
}
function
initPlugins
()
{
// 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment