Fixed crash when failing to connect third party sip account

This commit is contained in:
Sylvain Berfini 2024-01-10 12:10:58 +01:00
parent 8a6a2bef02
commit 6c03a6fb7a
3 changed files with 3 additions and 3 deletions

View file

@ -101,7 +101,7 @@ class AccountLoginViewModel @UiThread constructor() : ViewModel() {
else -> {
AppUtils.getFormattedString(
R.string.assistant_account_login_error,
account.error.toInt()
account.error.toString()
)
}
}

View file

@ -101,7 +101,7 @@ class ThirdPartySipAccountLoginViewModel @UiThread constructor() : ViewModel() {
else -> {
AppUtils.getFormattedString(
R.string.assistant_account_login_error,
account.error.toInt()
account.error.toString()
)
}
}

View file

@ -206,7 +206,7 @@
<string name="assistant_account_register_push_notification_not_received_error">Push notification with auth token not received in 5 seconds, please try again later</string>
<string name="assistant_account_register_unexpected_error">Unexpected error occurred, please try again later</string>
<string name="assistant_account_login_forbidden_error">Wrong username or password</string>
<string name="assistant_account_login_error">Failed to login: error code is %i</string>
<string name="assistant_account_login_error">Failed to login: error code is %s</string>
<string name="assistant_permissions_title">Grant permissions</string>
<string name="assistant_permissions_grant_all_of_them">OK</string>
<string name="assistant_permissions_skip_permissions">Do it later</string>