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
b767051d
Commit
b767051d
authored
Oct 31, 2015
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove "is typing" notification after 10 seconds. fixes #508
parent
c0863d3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
converse.js
converse.js
+10
-1
docs/CHANGES.rst
docs/CHANGES.rst
+1
-0
No files found.
converse.js
View file @
b767051d
...
...
@@ -1370,9 +1370,13 @@
return
this
;
},
clearStatusNotification
:
function
()
{
this
.
$content
.
find
(
'
div.chat-event
'
).
remove
();
},
showStatusNotification
:
function
(
message
,
keep_old
)
{
if
(
!
keep_old
)
{
this
.
$content
.
find
(
'
div.chat-event
'
).
remove
();
this
.
clearStatusNotification
();
}
this
.
$content
.
append
(
$
(
'
<div class="chat-info chat-event"></div>
'
).
text
(
message
));
this
.
scrollDown
();
...
...
@@ -1575,9 +1579,14 @@
* Parameters:
* (Object) message - The message Backbone object that was added.
*/
if
(
typeof
this
.
clear_status_timeout
!==
'
undefined
'
)
{
clearTimeout
(
this
.
clear_status_timeout
);
delete
this
.
clear_status_timeout
;
}
if
(
!
message
.
get
(
'
message
'
))
{
if
(
message
.
get
(
'
chat_state
'
)
===
COMPOSING
)
{
this
.
showStatusNotification
(
message
.
get
(
'
fullname
'
)
+
'
'
+
__
(
'
is typing
'
));
this
.
clear_status_timeout
=
setTimeout
(
this
.
clearStatusNotification
.
bind
(
this
),
10000
);
return
;
}
else
if
(
message
.
get
(
'
chat_state
'
)
===
PAUSED
)
{
this
.
showStatusNotification
(
message
.
get
(
'
fullname
'
)
+
'
'
+
__
(
'
has stopped typing
'
));
...
...
docs/CHANGES.rst
View file @
b767051d
...
...
@@ -7,6 +7,7 @@ Changelog
* #493 Refactor previous bugfix and now an event is emitted when a roster push event from server happens. [teseo]
* #502. Chat room not opened in non_amd version. [rjanbiah]
* #505 Typo caused [object Object] in room info [gromiak]
* #508 "Is typing" doesn't automatically disappear [jcbrand]
* #510 MUC room memberlist is being cleared with page reload when keepalive option is set. [jcbrand]
* Add the ability to also drag-resize chat boxes horizontally. [jcbrand]
...
...
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