mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-15 04:46:25 +02:00
Merge pull request #12213 from birarda/feat/hide-error-decrypting-notification
suppress Interface notification for DS decryption error
This commit is contained in:
commit
018bcc623b
1 changed files with 8 additions and 2 deletions
|
@ -539,9 +539,15 @@
|
||||||
return startingUp;
|
return startingUp;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onDomainConnectionRefused(reason) {
|
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);
|
createNotification("Connection refused: " + reason, NotificationType.CONNECTION_REFUSED);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function onEditError(msg) {
|
function onEditError(msg) {
|
||||||
createNotification(wordWrap(msg), NotificationType.EDIT_ERROR);
|
createNotification(wordWrap(msg), NotificationType.EDIT_ERROR);
|
||||||
|
|
Loading…
Reference in a new issue