mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-05 21:43:40 +01:00
Fix issue in disconnect identity server confirmation dialog content
This commit is contained in:
parent
8fefee9b02
commit
f340a19c8e
@ -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…
x
Reference in New Issue
Block a user