Removed condition that hides "User left message" in channels

pull/2711/head
Marcelo Schmidt 10 years ago
parent 7b53171b9a
commit bcc8ec006d
  1. 3
      server/methods/leaveRoom.coffee

@ -13,9 +13,8 @@ Meteor.methods
RocketChat.models.Rooms.removeUsernameById rid, user.username
if room.t isnt 'c' and room.usernames.indexOf(user.username) isnt -1
if room.usernames.indexOf(user.username) isnt -1
removedUser = user
RocketChat.models.Messages.createUserLeaveWithRoomIdAndUser rid, removedUser
if room.t is 'l'

Loading…
Cancel
Save