Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
cd9b6b2f
Commit
cd9b6b2f
authored
9 years ago
by
Rodrigo Nascimento
Browse files
Options
Downloads
Patches
Plain Diff
Fix error in msgTyping
parent
5c993f16
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/lib/msgTyping.coffee
+3
-3
3 additions, 3 deletions
client/lib/msgTyping.coffee
with
3 additions
and
3 deletions
client/lib/msgTyping.coffee
+
3
−
3
View file @
cd9b6b2f
...
...
@@ -12,7 +12,7 @@
if
_
.
isEmpty
usersTyping
[
room
]
?
.
users
usersTyping
[
room
]
=
{
users
:
{}
}
stream
.
on
room
,
(
typing
)
->
unless
typing
.
username
is
Meteor
.
user
()
?
.
username
unless
typing
?
.
username
is
Meteor
.
user
()
?
.
username
if
typing
.
start
users
=
usersTyping
[
room
].
users
users
[
typing
.
username
]
=
Meteor
.
setTimeout
->
...
...
@@ -41,7 +41,7 @@
renew
=
false
selfTyping
.
set
true
stream
.
emit
'typing'
,
{
room
:
room
,
username
:
Meteor
.
user
().
username
,
start
:
true
}
stream
.
emit
'typing'
,
{
room
:
room
,
username
:
Meteor
.
user
()
?
.
username
,
start
:
true
}
clearTimeout
timeouts
[
room
]
timeouts
[
room
]
=
Meteor
.
setTimeout
->
stop
(
room
)
...
...
@@ -53,7 +53,7 @@
if
timeouts
?
[
room
]
?
clearTimeout
(
timeouts
[
room
])
timeouts
[
room
]
=
null
stream
.
emit
'typing'
,
{
room
:
room
,
username
:
Meteor
.
user
().
username
,
stop
:
true
}
stream
.
emit
'typing'
,
{
room
:
room
,
username
:
Meteor
.
user
()
?
.
username
,
stop
:
true
}
get
=
(
room
)
->
dep
.
depend
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment