Skip to content

Commit

Permalink
Merge pull request #10104 from RocketChat/ggazzo-fix
Browse files Browse the repository at this point in the history
[FIX] Reactions not working on mobile
  • Loading branch information
rodrigok committed Mar 26, 2018
2 parents 7bedc04 + 4d5e6d2 commit 7ceae2b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/rocketchat-reactions/client/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,8 @@ Meteor.startup(function() {
'message-mobile'
],
action(event) {
const data = Blaze.getData(event.currentTarget);

event.stopPropagation();

RocketChat.EmojiPicker.open(event.currentTarget, (emoji) => {
Meteor.call('setReaction', `:${ emoji }:`, data._arguments[1]._id);
});
RocketChat.EmojiPicker.open(event.currentTarget, emoji => Meteor.call('setReaction', `:${ emoji }:`, this._arguments[1]._id));
},
condition(message) {
const room = RocketChat.models.Rooms.findOne({ _id: message.rid });
Expand Down

0 comments on commit 7ceae2b

Please sign in to comment.