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
d2ef8240
Commit
d2ef8240
authored
8 years ago
by
Diego Sampaio
Browse files
Options
Downloads
Patches
Plain Diff
Add new global events
- new-message - opened-room
parent
72c5db7a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/rocketchat-lib/client/lib/openRoom.coffee
+2
-0
2 additions, 0 deletions
packages/rocketchat-lib/client/lib/openRoom.coffee
packages/rocketchat-ui/lib/RoomManager.coffee
+2
-0
2 additions, 0 deletions
packages/rocketchat-ui/lib/RoomManager.coffee
with
4 additions
and
0 deletions
packages/rocketchat-lib/client/lib/openRoom.coffee
+
2
−
0
View file @
d2ef8240
...
...
@@ -44,6 +44,8 @@ currentTracker = undefined
Session
.
set
'openedRoom'
,
room
.
_id
fireGlobalEvent
'room-opened'
,
_
.
omit
room
,
'usernames'
Session
.
set
'editRoomTitle'
,
false
RoomManager
.
updateMentionsMarksOfRoom
type
+
name
Meteor
.
setTimeout
->
...
...
This diff is collapsed.
Click to expand it.
packages/rocketchat-ui/lib/RoomManager.coffee
+
2
−
0
View file @
d2ef8240
...
...
@@ -131,6 +131,8 @@ Tracker.autorun ->
RocketChat
.
callbacks
.
run
'streamMessage'
,
msg
window
.
fireGlobalEvent
(
'new-message'
,
msg
);
RocketChat
.
Notifications
.
onRoom
openedRooms
[
typeName
].
rid
,
'deleteMessage'
,
onDeleteMessageStream
Dep
.
changed
()
...
...
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