Fix you not shown (#830)

pull/1706/head
SessionHero01 4 months ago committed by GitHub
parent a0a98a4f87
commit eaa9cc9e50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -73,8 +73,12 @@ abstract class BaseGroupMembersViewModel (
myAccountId: AccountId,
amIAdmin: Boolean,
): GroupMemberState {
val name = member.getMemberName(configFactory)
val isMyself = member.accountId == myAccountId
val name = if (isMyself) {
context.getString(R.string.you)
} else {
member.getMemberName(configFactory)
}
val highlightStatus = member.status in EnumSet.of(
GroupMember.Status.INVITE_FAILED,

Loading…
Cancel
Save