Skip to content

Commit

Permalink
add condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Plyha committed Aug 6, 2024
1 parent 2913b3c commit 6124ca4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ private void accountCreationFailed( StanzaError.Condition condition ) {
message = Res.getString("message.already.exists");
usernameField.setText("");
usernameField.requestFocus();
} else if (condition == StanzaError.Condition.not_allowed) {
} else if (condition == StanzaError.Condition.not_allowed || condition == StanzaError.Condition.forbidden) {
message = Res.getString("message.create.account.not.allowed");
} else {
message = Res.getString("message.create.account");
Expand Down

0 comments on commit 6124ca4

Please sign in to comment.