Skip to content
Permalink
Browse files

🐛 fixed getting sender

  • Loading branch information...
Bjornskjald committed Dec 13, 2018
1 parent 1eebf35 commit d2ec1259d8916bc6fe677cc4bb7d963421c5d61d
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/messenger/getSender.js
@@ -7,8 +7,8 @@ module.exports = async senderID => {
return messenger.senders.get(senderID)
} else {
log.debug('Getting sender from API')
const senders = await messenger.client.getUserInfo(senderID)
messenger.senders.set(senderID, senders[senderID])
return senders[senderID]
const sender = await messenger.client.getUserInfo(senderID)
messenger.senders.set(senderID, sender)
return sender
}
}

0 comments on commit d2ec125

Please sign in to comment.
You can’t perform that action at this time.