Skip to content
Snippets Groups Projects
Commit bbf8d9cc authored by Marcelo Schmidt's avatar Marcelo Schmidt
Browse files

Decrypts messages before saving to local messages collection

parent 73f443ef
No related branches found
No related tags found
No related merge requests found
......@@ -15,4 +15,6 @@ Meteor.methods
message = RocketChat.callbacks.run 'beforeSaveMessage', message
ChatMessage.insert message
RocketChat.promises.run('onClientMessageReceived', message).then (message) ->
ChatMessage.insert message
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