mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 22:29:09 +00:00
show replacement only if the user set a replacement
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
083f0de063
commit
c9d5bc68a2
@ -1084,11 +1084,14 @@ class ChatActivity :
|
||||
context.resources.getString(R.string.user_absence),
|
||||
uiState.userAbsence.userId
|
||||
)
|
||||
if(uiState.userAbsence.replacementUserDisplayName != null){
|
||||
binding.outOfOfficeContainer.findViewById<TextView>(R.id.absenceReplacement).text = String.format(
|
||||
context.resources.getString(R.string.user_absence_replacement),
|
||||
uiState.userAbsence.replacementUserDisplayName
|
||||
)
|
||||
|
||||
}else{
|
||||
binding.outOfOfficeContainer.findViewById<TextView>(R.id.absenceReplacement).visibility = View.GONE
|
||||
}
|
||||
binding.outOfOfficeContainer.findViewById<TextView>(R.id.userAbsenceLongMessage).text = uiState.userAbsence.message
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user