Skip to content
Snippets Groups Projects
Unverified Commit 3fa4a6b0 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Allow send empty message

parent 50e65ae1
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,9 @@ RocketChat.sendMessage = (user, message, room, upsert = false) ->
message.u = _.pick user, ['_id','username']
if not Match.test(message.msg, String)
message.msg = ''
message.rid = room._id
if not room.usernames?
......
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