"Jump to read receipt" available only for joined members

This commit is contained in:
Benoit Marty 2020-10-05 18:53:32 +02:00 committed by Benoit Marty
parent 7952e205b9
commit 6325ee9310
1 changed files with 10 additions and 7 deletions

View File

@ -172,6 +172,8 @@ class RoomMemberProfileController @Inject constructor(
val membership = state.asyncMembership() ?: return
buildProfileSection(stringProvider.getString(R.string.room_profile_section_more))
if (membership == Membership.JOIN) {
buildProfileAction(
id = "read_receipt",
editable = false,
@ -179,6 +181,7 @@ class RoomMemberProfileController @Inject constructor(
dividerColor = dividerColor,
action = { callback?.onJumpToReadReceiptClicked() }
)
}
val ignoreActionTitle = state.buildIgnoreActionTitle()