Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate the error observed when the user is not allowed to join a room #344

Closed
wants to merge 2 commits into from

Conversation

Claire1817
Copy link
Contributor

@github-actions
Copy link

github-actions bot commented Jan 4, 2022

Unit Test Results

11 files  ±0  11 suites  ±0   7s ⏱️ ±0s
83 tests ±0  83 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit bbcaf43. ± Comparison against base commit 8c7fc54.

@@ -116,6 +116,10 @@ class DefaultErrorFormatter @Inject constructor(
throwable.error.code == MatrixError.M_PASSWORD_NO_SYMBOL -> {
stringProvider.getString(R.string.tchap_register_pwd_no_symbol)
}
throwable.error.code == MatrixError.M_UNKNOWN &&
throwable.error.message == "Not allowed to join this room" -> {
stringProvider.getString(R.string.tchap_room_access_unauthorized_to_externs)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ClaireGizard

  • the error is not limited to extern account, so please remove "to_externs" string from the key
  • I realized we should apply this change at the Element level to let the community translate this message
    (like above
    For that, prepare a PR in Element-Android by introducing a new string key "room_error_access_unauthorized". I suggest add it here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Claire1817 Claire1817 closed this Jan 4, 2022
@Claire1817 Claire1817 deleted the cgizard/ISSUE-336 branch April 8, 2022 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants