Skip to content
Snippets Groups Projects
Commit 7239c830 authored by Gabriel Engel's avatar Gabriel Engel Committed by GitHub
Browse files

Merge pull request #4430 from RocketChat/new-global-events

Add new global events
parents 72c5db7a d2ef8240
No related merge requests found
......@@ -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 ->
......
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment