Skip to content

Commit

Permalink
Add 'tags' to message metadata if supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-fryslie committed Aug 7, 2017
1 parent 8a9046a commit 4063a95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.9.5
3 changes: 2 additions & 1 deletion src/flowdock.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class Flowdock extends Adapter
@robot.logger.info('Flowdock: connecting')
@stream = @bot.stream(ids, active: 'idle', user: 1)
@stream.on 'connected', =>
@robot.logger.info('Flowdock: connected and streaming')
@robot.logger.info('Flowdock: connected and streaming and hucking and jiving!')
@robot.logger.info('Flowdock: listening to flows:', (flow.name for flow in @joinedFlows()).join(', '))
@stream.on 'clientError', (error) => @robot.logger.error('Flowdock: client error:', error)
@stream.on 'disconnected', => @robot.logger.info('Flowdock: disconnected')
Expand Down Expand Up @@ -152,6 +152,7 @@ class Flowdock extends Adapter
room: message.flow
metadata['thread_id'] = thread_id if thread_id?
metadata['message_id'] = messageId if messageId?
metadata['tags'] = message.tags if message.tags?

messageObj = new TextMessage(author, hubotMsg, message.id, metadata)
# Support metadata even if hubot does not currently do that
Expand Down

0 comments on commit 4063a95

Please sign in to comment.