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
d92a7428
Commit
d92a7428
authored
Jan 04, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #1390
parent
e418a948
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
dist/converse.js
dist/converse.js
+3
-3
src/converse-chatview.js
src/converse-chatview.js
+1
-2
No files found.
dist/converse.js
View file @
d92a7428
...
...
@@ -50271,8 +50271,7 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_5__["default"].plugins
if (this.parseMessageForCommands(message) || (await this.model.sendMessage(this.model.getOutgoingMessageAttributes(message, spoiler_hint)))) {
hint_el.value = '';
textarea.value = '';
_converse_headless_utils_emoji__WEBPACK_IMPORTED_MODULE_21__["default"].removeClass('correcting', textarea);
textarea.focus(); // Trigger input event, so that the textarea resizes
_converse_headless_utils_emoji__WEBPACK_IMPORTED_MODULE_21__["default"].removeClass('correcting', textarea); // Trigger input event, so that the textarea resizes
const event = document.createEvent('Event');
event.initEvent('input', true, true);
...
...
@@ -50281,7 +50280,8 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_5__["default"].plugins
_converse.emit('messageSend', message);
}
textarea.removeAttribute('disabled'); // Suppress events, otherwise superfluous CSN gets set
textarea.removeAttribute('disabled');
textarea.focus(); // Suppress events, otherwise superfluous CSN gets set
// immediately after the message, causing rate-limiting issues.
this.setChatState(_converse.ACTIVE, {
src/converse-chatview.js
View file @
d92a7428
...
...
@@ -874,11 +874,9 @@ converse.plugins.add('converse-chatview', {
textarea
.
setAttribute
(
'
disabled
'
,
'
disabled
'
);
if
(
this
.
parseMessageForCommands
(
message
)
||
await
this
.
model
.
sendMessage
(
this
.
model
.
getOutgoingMessageAttributes
(
message
,
spoiler_hint
)))
{
hint_el
.
value
=
''
;
textarea
.
value
=
''
;
u
.
removeClass
(
'
correcting
'
,
textarea
);
textarea
.
focus
();
// Trigger input event, so that the textarea resizes
const
event
=
document
.
createEvent
(
'
Event
'
);
event
.
initEvent
(
'
input
'
,
true
,
true
);
...
...
@@ -886,6 +884,7 @@ converse.plugins.add('converse-chatview', {
_converse
.
emit
(
'
messageSend
'
,
message
);
}
textarea
.
removeAttribute
(
'
disabled
'
);
textarea
.
focus
();
// Suppress events, otherwise superfluous CSN gets set
// immediately after the message, causing rate-limiting issues.
this
.
setChatState
(
_converse
.
ACTIVE
,
{
'
silent
'
:
true
});
...
...
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