Unused val

This commit is contained in:
Valere 2020-11-18 10:17:50 +01:00 committed by Benoit Marty
parent 1de5cd2e61
commit 206e68b1d2

View File

@ -95,7 +95,6 @@ internal class RoomDisplayNameResolver @Inject constructor(
val roomSummary = RoomSummaryEntity.where(realm, roomId).findFirst()
val invitedCount = roomSummary?.invitedMembersCount ?: 0
val joinedCount = roomSummary?.joinedMembersCount ?: 0
val othersTotalCount = invitedCount + joinedCount - 1
val otherMembersSubset: List<RoomMemberSummaryEntity> = if (roomSummary?.heroes?.isNotEmpty() == true) {
roomSummary.heroes.mapNotNull { userId ->
roomMembers.getLastRoomMember(userId)?.takeIf {