forked from GitHub-Mirror/riotX-android
Close detail room screen when the room is left with another client (#256)
This commit is contained in:
parent
cd6624a8a6
commit
10490e3aa6
@ -12,6 +12,7 @@ Other changes:
|
|||||||
|
|
||||||
Bugfix:
|
Bugfix:
|
||||||
- Edited message: link confusion when (edited) appears in body (#398)
|
- Edited message: link confusion when (edited) appears in body (#398)
|
||||||
|
- Close detail room screen when the room is left with another client (#256)
|
||||||
|
|
||||||
Translations:
|
Translations:
|
||||||
-
|
-
|
||||||
|
@ -536,9 +536,14 @@ class RoomDetailFragment :
|
|||||||
|
|
||||||
private fun renderRoomSummary(state: RoomDetailViewState) {
|
private fun renderRoomSummary(state: RoomDetailViewState) {
|
||||||
state.asyncRoomSummary()?.let {
|
state.asyncRoomSummary()?.let {
|
||||||
roomToolbarTitleView.text = it.displayName
|
if (it.membership.isLeft()) {
|
||||||
avatarRenderer.render(it, roomToolbarAvatarImageView)
|
Timber.w("The room has been left")
|
||||||
roomToolbarSubtitleView.setTextOrHide(it.topic)
|
activity?.finish()
|
||||||
|
} else {
|
||||||
|
roomToolbarTitleView.text = it.displayName
|
||||||
|
avatarRenderer.render(it, roomToolbarAvatarImageView)
|
||||||
|
roomToolbarSubtitleView.setTextOrHide(it.topic)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user