Skip to content

Commit

Permalink
s/messages/message
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Oct 19, 2018
1 parent 75f59c2 commit e83a8e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SlackHookHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ SlackHookHandler.prototype.lookupMessage = function(channelID, timestamp, token)
var message = response.messages[0];
log.debug("Looked up message from history as " + JSON.stringify(message));

if (messages.subtype !== "file_share") {
if (message.subtype !== "file_share") {
return message;
}
return this.enablePublicSharing(message.file, token)
Expand Down

0 comments on commit e83a8e2

Please sign in to comment.