Skip to content

Commit

Permalink
fix(rocketchat): Include user name in created user
Browse files Browse the repository at this point in the history
  • Loading branch information
timkinnane committed Aug 17, 2018
1 parent 982efd3 commit 12115a9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/adapters/rocketchat.ts
Expand Up @@ -47,11 +47,15 @@ export class Rocketchat extends bot.MessageAdapter {
this.bot.logger.info('[rocketchat] filters passed, will hear message')
const isDM = (meta.roomType === 'd')
const isLC = (meta.roomType === 'l')
const user = bot.userById(message.u._id, { room: {
id: message.rid,
type: meta.roomType,
name: meta.roomName
} })
const user = bot.userById(message.u._id, {
fullName: message.u.name,
name: message.u.username,
room: {
id: message.rid,
type: meta.roomType,
name: meta.roomName
}
})

// Room joins, hear without further detail
if (message.t === 'uj') {
Expand Down

0 comments on commit 12115a9

Please sign in to comment.