Skip to content

Commit

Permalink
Merge branch 'develop' into release-0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Oct 20, 2018
2 parents be2920f + c439541 commit 5c6965e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ Provisioning.commands.logout = new Provisioning.Command({
return;
}
const store = main._bridge.getUserStore();
return store.getMatrixUser(userId).then((matrixUser) => {
return store.getMatrixUser(user_id).then((matrixUser) => {
matrixUser = matrixUser ? matrixUser : new BridgeLib.MatrixUser(userId);
const accounts = matrixUser.get("accounts") || {};
delete accounts[slack_id];
Expand Down
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
1 change: 1 addition & 0 deletions lib/substitutions.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ var slackToMatrix = function(body, file) {
return emojiChar;
}
log.warn("Failed to recognise emoji sequence: " + emojiKey);
return emojiKey;
});
return body;
};
Expand Down

0 comments on commit 5c6965e

Please sign in to comment.