Skip to content
Snippets Groups Projects
Commit f2a6b113 authored by Diego Sampaio's avatar Diego Sampaio
Browse files

Fix eslint errors

parent 722251dc
No related branches found
No related tags found
No related merge requests found
......@@ -23,3 +23,4 @@ packages/rocketchat-livechat/public/external.js
packages/rocketchat-autolinker/lib/Autolinker.min.js
packages/rocketchat-livechat/lib/ua-parser.js
packages/rocketchat-videobridge/client/public/external_api.js
packages/rocketchat-lib/client/lib/localforage.min.js
......@@ -37,7 +37,7 @@ Meteor.methods({
attachment.video_size = file.size;
}
var msg = {
const msg = {
_id: Random.id(),
rid: roomId,
msg: '',
......@@ -48,6 +48,6 @@ Meteor.methods({
attachments: [attachment]
};
msg = Meteor.call('sendMessage', msg);
return Meteor.call('sendMessage', msg);
}
});
......@@ -39,5 +39,5 @@ Meteor.methods({
}
RocketChat.models.Subscriptions.updateDesktopNotificationDurationById(subscription._id, value);
return true;
},
}
});
......@@ -5,7 +5,7 @@ function Archive(command, params, item) {
}
channel = params.trim();
if (channel === '') {
room = RocketChat.models.Rooms.findOneById(item.rid)
room = RocketChat.models.Rooms.findOneById(item.rid);
channel = room.name;
} else {
channel = channel.replace('#', '');
......
function Open(command, params, item) {
function Open(command, params/*, item*/) {
var room, subscription, type;
if (command !== 'open' || !Match.test(params, String)) {
return;
......
......@@ -5,7 +5,7 @@ function Unarchive(command, params, item) {
}
channel = params.trim();
if (channel === '') {
room = RocketChat.models.Rooms.findOneById(item.rid)
room = RocketChat.models.Rooms.findOneById(item.rid);
channel = room.name;
} else {
channel = channel.replace('#', '');
......
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