Skip to content

Commit

Permalink
Merge pull request #616 from matrix-org/luke/fix-unverified-device-bl…
Browse files Browse the repository at this point in the history
…acklist

Fix bug where global "Never send to unverified..." is ignored
  • Loading branch information
dbkr authored Feb 23, 2018
2 parents 6f95554 + bcb9405 commit f9cc5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/algorithms/megolm.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ MegolmEncryption.prototype._getDevicesInRoom = function(room) {

// The global value is treated as a default for when rooms don't specify a value.
let isBlacklisting = this._crypto.getGlobalBlacklistUnverifiedDevices();
if (room.getBlacklistUnverifiedDevices() !== null) {
if (typeof room.getBlacklistUnverifiedDevices() === 'boolean') {
isBlacklisting = room.getBlacklistUnverifiedDevices();
}

Expand Down

0 comments on commit f9cc5cb

Please sign in to comment.