Skip to content

Commit

Permalink
Click the Allow Reacting option error
Browse files Browse the repository at this point in the history
TypeError: Cannot read property 'set' of undefined
Line 201
Should be "=>" instead of "->"
"@" changed,"@processing" is undefined
  • Loading branch information
szluohua authored Mar 16, 2017
1 parent 91947b5 commit 8e72136
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ Template.channelSettings.onCreated ->
canView: (room) => room.t isnt 'd' and room.ro
canEdit: (room) => RocketChat.authz.hasAllPermission('set-react-when-readonly', room._id)
save: (value, room) ->
Meteor.call 'saveRoomSettings', room._id, 'reactWhenReadOnly', value, (err, result) ->
Meteor.call 'saveRoomSettings', room._id, 'reactWhenReadOnly', value, (err, result) =>
return handleError err if err
toastr.success TAPi18n.__ 'React_when_read_only_changed_successfully'

Expand Down

0 comments on commit 8e72136

Please sign in to comment.