remove references to disused RIOT.USER_NOT_FOUND error code
parent
b8692bdf17
commit
d836ca19d8
|
@ -164,7 +164,7 @@ export default class MultiInviter {
|
||||||
this._doInvite(address, ignoreProfile).then(resolve, reject);
|
this._doInvite(address, ignoreProfile).then(resolve, reject);
|
||||||
}, 5000);
|
}, 5000);
|
||||||
return;
|
return;
|
||||||
} else if (['M_NOT_FOUND', 'M_USER_NOT_FOUND', 'RIOT.USER_NOT_FOUND'].includes(err.errcode)) {
|
} else if (['M_NOT_FOUND', 'M_USER_NOT_FOUND'].includes(err.errcode)) {
|
||||||
errorText = _t("User %(user_id)s does not exist", {user_id: address});
|
errorText = _t("User %(user_id)s does not exist", {user_id: address});
|
||||||
} else if (err.errcode === 'M_PROFILE_UNDISCLOSED') {
|
} else if (err.errcode === 'M_PROFILE_UNDISCLOSED') {
|
||||||
errorText = _t("User %(user_id)s may or may not exist", {user_id: address});
|
errorText = _t("User %(user_id)s may or may not exist", {user_id: address});
|
||||||
|
@ -205,7 +205,7 @@ export default class MultiInviter {
|
||||||
if (Object.keys(this.errors).length > 0 && !this.groupId) {
|
if (Object.keys(this.errors).length > 0 && !this.groupId) {
|
||||||
// There were problems inviting some people - see if we can invite them
|
// There were problems inviting some people - see if we can invite them
|
||||||
// without caring if they exist or not.
|
// without caring if they exist or not.
|
||||||
const unknownProfileErrors = ['M_NOT_FOUND', 'M_USER_NOT_FOUND', 'M_PROFILE_UNDISCLOSED', 'M_PROFILE_NOT_FOUND', 'RIOT.USER_NOT_FOUND'];
|
const unknownProfileErrors = ['M_NOT_FOUND', 'M_USER_NOT_FOUND', 'M_PROFILE_UNDISCLOSED', 'M_PROFILE_NOT_FOUND'];
|
||||||
const unknownProfileUsers = Object.keys(this.errors).filter(a => unknownProfileErrors.includes(this.errors[a].errcode));
|
const unknownProfileUsers = Object.keys(this.errors).filter(a => unknownProfileErrors.includes(this.errors[a].errcode));
|
||||||
|
|
||||||
if (unknownProfileUsers.length > 0) {
|
if (unknownProfileUsers.length > 0) {
|
||||||
|
|
Loading…
Reference in New Issue