-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Converted rocketchat-lib 3 #6672
Conversation
…into rocketchat-lib3
…nto rocketchat-lib3
…nto rocketchat-lib3
@@ -0,0 +1,102 @@ | |||
/* globals fireGlobalEvent readMessage*/ | |||
const openRoom = function(type, name) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not remove the global var currentTracker
return _(actions).reduceRight(_.wrap, (err, success) => callback(err, success))(); | ||
}, | ||
load(key, value, initialLoad) { | ||
Object.keys({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use a simple array?
} | ||
}); | ||
|
||
if (room && !room.t) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If room is undefined the code will continue and 3 lines below the assign from room.t
will thrown an exception
t: 1 | ||
} | ||
}); | ||
if (room && !room.t) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
…nto rocketchat-lib3
merge #6593 first