-
Notifications
You must be signed in to change notification settings - Fork 229
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
Hubot script to accept the room name #214
Conversation
Linked to RocketChat/Rocket.Chat#7102 |
src/rocketchat.coffee
Outdated
if newmsg.t is 'uj' | ||
@robot.receive new EnterMessage user, null, newmsg._id | ||
else | ||
@chatdriver.getRommName(newmsg.rid).then((roomName)=> |
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.
Can we fix the spelling on this to getRoomName
?
Thanks!
src/rocketchat_driver.coffee
Outdated
@@ -39,6 +40,9 @@ class RocketChatDriver | |||
getRoomId: (room) => | |||
@tryCache _roomIdCache, 'getRoomIdByNameOrId', room, 'Room ID' | |||
|
|||
getRommName: (room) => |
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 fix here of course :)
src/rocketchat_driver.coffee
Outdated
changedMsgQuery = @messages.reactiveQuery {"_id": id} | ||
if changedMsgQuery.result && changedMsgQuery.result.length > 0 | ||
# console.log('result:', JSON.stringify(changedMsgQuery.result, null, 2)) | ||
# console.log('result:', JSON.stringify(changedMsgQuery.result, null, 2)) |
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.
Can we also get these comments moved back in line like they were?
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.
I'm sorry I use the ide automatically formatted
Can this be merged? I think v57 of Rocket.chat has the necessary API (https://github.com/RocketChat/Rocket.Chat/releases/tag/0.57.0), doesn't it? |
We expect in messages received or room name, rather than the room id, because the room id cannot access to the page and not easy to understand #213