mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 18:35:40 +03:00
Fix issue in disconnect identity server confirmation dialog content
This commit is contained in:
parent
8fefee9b02
commit
f340a19c8e
1 changed files with 3 additions and 2 deletions
|
@ -167,10 +167,11 @@ class DiscoverySettingsFragment @Inject constructor(
|
|||
val pidList = state.emailList().orEmpty() + state.phoneNumbersList().orEmpty()
|
||||
val hasBoundIds = pidList.any { it.isShared() == SharedState.SHARED }
|
||||
|
||||
val serverUrl = state.identityServer()?.serverUrl.orEmpty()
|
||||
val message = if (hasBoundIds) {
|
||||
getString(R.string.settings_discovery_disconnect_with_bound_pid, state.identityServer(), state.identityServer())
|
||||
getString(R.string.settings_discovery_disconnect_with_bound_pid, serverUrl, serverUrl)
|
||||
} else {
|
||||
getString(R.string.disconnect_identity_server_dialog_content, state.identityServer())
|
||||
getString(R.string.disconnect_identity_server_dialog_content, serverUrl)
|
||||
}
|
||||
|
||||
MaterialAlertDialogBuilder(requireActivity())
|
||||
|
|
Loading…
Reference in a new issue