Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit d836ca1

Browse files
committed
remove references to disused RIOT.USER_NOT_FOUND error code
1 parent b8692bd commit d836ca1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/MultiInviter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export default class MultiInviter {
164164
this._doInvite(address, ignoreProfile).then(resolve, reject);
165165
}, 5000);
166166
return;
167-
} else if (['M_NOT_FOUND', 'M_USER_NOT_FOUND', 'RIOT.USER_NOT_FOUND'].includes(err.errcode)) {
167+
} else if (['M_NOT_FOUND', 'M_USER_NOT_FOUND'].includes(err.errcode)) {
168168
errorText = _t("User %(user_id)s does not exist", {user_id: address});
169169
} else if (err.errcode === 'M_PROFILE_UNDISCLOSED') {
170170
errorText = _t("User %(user_id)s may or may not exist", {user_id: address});
@@ -205,7 +205,7 @@ export default class MultiInviter {
205205
if (Object.keys(this.errors).length > 0 && !this.groupId) {
206206
// There were problems inviting some people - see if we can invite them
207207
// without caring if they exist or not.
208-
const unknownProfileErrors = ['M_NOT_FOUND', 'M_USER_NOT_FOUND', 'M_PROFILE_UNDISCLOSED', 'M_PROFILE_NOT_FOUND', 'RIOT.USER_NOT_FOUND'];
208+
const unknownProfileErrors = ['M_NOT_FOUND', 'M_USER_NOT_FOUND', 'M_PROFILE_UNDISCLOSED', 'M_PROFILE_NOT_FOUND'];
209209
const unknownProfileUsers = Object.keys(this.errors).filter(a => unknownProfileErrors.includes(this.errors[a].errcode));
210210

211211
if (unknownProfileUsers.length > 0) {

0 commit comments

Comments
 (0)