You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
don't automatically mark devices as known; require the app to do it
This commit is contained in:
@@ -434,10 +434,6 @@ MegolmEncryption.prototype._checkForUnknownDevices = function(devicesInRoom) {
|
|||||||
Object.keys(devicesInRoom[userId]).forEach((deviceId)=>{
|
Object.keys(devicesInRoom[userId]).forEach((deviceId)=>{
|
||||||
const device = devicesInRoom[userId][deviceId];
|
const device = devicesInRoom[userId][deviceId];
|
||||||
if (device.isUnverified() && !device.isKnown()) {
|
if (device.isUnverified() && !device.isKnown()) {
|
||||||
// mark the devices as known to the user, given we're about to
|
|
||||||
// yell at them.
|
|
||||||
this._crypto.setDeviceVerification(userId, device.deviceId,
|
|
||||||
undefined, undefined, true);
|
|
||||||
if (!unknownDevices[userId]) {
|
if (!unknownDevices[userId]) {
|
||||||
unknownDevices[userId] = {};
|
unknownDevices[userId] = {};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user