Merge pull request #12213 from birarda/feat/hide-error-decrypting-notification

suppress Interface notification for DS decryption error
This commit is contained in:
Stephen Birarda 2018-01-19 14:10:10 -07:00 committed by GitHub
commit 018bcc623b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -539,8 +539,14 @@
return startingUp;
}
function onDomainConnectionRefused(reason) {
createNotification("Connection refused: " + reason, NotificationType.CONNECTION_REFUSED);
function onDomainConnectionRefused(reason, reasonCode) {
// the "login error" reason means that the DS couldn't decrypt the username signature
// since this eventually resolves itself for good actors we don't need to show a notification for it
var LOGIN_ERROR_REASON_CODE = 2;
if (reasonCode != LOGIN_ERROR_REASON_CODE) {
createNotification("Connection refused: " + reason, NotificationType.CONNECTION_REFUSED);
}
}
function onEditError(msg) {