Consider that the topic of a room has been removed when it's blank. (#4206)
This commit is contained in:
parent
c7f035fea5
commit
07dbb0b47a
2 changed files with 10 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ class StateContentFormatter @Inject constructor(
|
|||
}
|
||||
}
|
||||
is OtherState.RoomTopic -> {
|
||||
val hasRoomTopic = content.topic != null
|
||||
val hasRoomTopic = content.topic?.isNotBlank() == true
|
||||
when {
|
||||
senderIsYou && hasRoomTopic -> sp.getString(R.string.state_event_room_topic_changed_by_you, content.topic)
|
||||
senderIsYou && !hasRoomTopic -> sp.getString(R.string.state_event_room_topic_removed_by_you)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue