Skip to content

Commit

Permalink
fix: When device was used on another account, we see a random string,…
Browse files Browse the repository at this point in the history
… instead of only the device name (#1740)
  • Loading branch information
MohamadJaara authored Apr 27, 2023
1 parent e1bb144 commit a8152fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/kotlin/com/wire/android/ui/WireActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -353,14 +353,14 @@ class WireActivity : AppCompatActivity() {
when (data) {
is NewClientData.OtherUser -> {
title = stringResource(R.string.new_device_dialog_other_user_title, data.userName ?: "", data.userHandle ?: "")
text = stringResource(R.string.new_device_dialog_other_user_message, date, data.deviceInfo)
text = stringResource(R.string.new_device_dialog_other_user_message, date, data.deviceInfo.asString())
btnText = stringResource(R.string.new_device_dialog_other_user_btn)
btnAction = { switchAccount(data.userId) }
}

is NewClientData.CurrentUser -> {
title = stringResource(R.string.new_device_dialog_current_user_title)
text = stringResource(R.string.new_device_dialog_current_user_message, date, data.deviceInfo)
text = stringResource(R.string.new_device_dialog_current_user_message, date, data.deviceInfo.asString())
btnText = stringResource(R.string.new_device_dialog_current_user_btn)
btnAction = openDeviceManager
}
Expand Down

0 comments on commit a8152fd

Please sign in to comment.