Fix pinning issue causing unnecessary reset

This commit is contained in:
yflory
2019-10-22 11:21:41 +02:00
parent efded1063f
commit c894351a30
3 changed files with 19 additions and 2 deletions

View File

@@ -996,8 +996,10 @@ define([
}
}));
if (!isSharedFolder) {
common.unpinPads([oldChannel], waitFor(), teamId);
common.pinPads([newSecret.channel], waitFor(), teamId);
postMessage("CHANGE_PAD_PASSWORD_PIN", {
oldChannel: oldChannel,
channel: newSecret.channel
}, waitFor());
}
}).nThen(function () {
cb({