Skip to content
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

Merged
merged 5 commits into from
Jul 6, 2017

Conversation

thinkeridea
Copy link
Contributor

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

@CLAassistant
Copy link

CLAassistant commented May 26, 2017

CLA assistant check
All committers have signed the CLA.

@JigSawFr
Copy link

Linked to RocketChat/Rocket.Chat#7102

if newmsg.t is 'uj'
@robot.receive new EnterMessage user, null, newmsg._id
else
@chatdriver.getRommName(newmsg.rid).then((roomName)=>
Copy link
Contributor

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!

@@ -39,6 +40,9 @@ class RocketChatDriver
getRoomId: (room) =>
@tryCache _roomIdCache, 'getRoomIdByNameOrId', room, 'Room ID'

getRommName: (room) =>
Copy link
Contributor

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 :)

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))
Copy link
Contributor

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?

Copy link
Contributor Author

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

@jangmarker
Copy link
Contributor

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?

@geekgonecrazy geekgonecrazy merged commit 9fdea96 into RocketChat:master Jul 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants