Skip to content

Commit

Permalink
Fixed code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
borichellow committed Aug 2, 2024
1 parent 247e846 commit db8e023
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ class ObserveParticipantsForConversationUseCase @Inject constructor(

ConversationParticipantsData(
admins = visibleAdminsWithoutServices
.map { uiParticipantMapper.toUIParticipant(it.user, mlsVerificationMap[it.user.id] ?: false ) },
.map { uiParticipantMapper.toUIParticipant(it.user, mlsVerificationMap[it.user.id] ?: false) },
participants = visibleParticipants
.map { uiParticipantMapper.toUIParticipant(it.user, mlsVerificationMap[it.user.id] ?: false ) },
.map { uiParticipantMapper.toUIParticipant(it.user, mlsVerificationMap[it.user.id] ?: false) },
allAdminsCount = allAdminsWithoutServices.size,
allParticipantsCount = allParticipants.size,
isSelfAnAdmin = allAdminsWithoutServices.any { it.user is SelfUser }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class ObserveParticipantsForConversationUseCaseTest {
assert(data.allParticipantsCount == members.size)
assertEquals(true, data.participants.firstOrNull { it.id == userId1 }?.isMLSVerified)
assertEquals(false, data.participants.firstOrNull { it.id == userId2 }?.isMLSVerified)
assertEquals(false, data.participants.firstOrNull { it.id == userId3 }?.isMLSVerified) // false if null
assertEquals(false, data.participants.firstOrNull { it.id == userId3 }?.isMLSVerified) // false if null
}
}

Expand Down

0 comments on commit db8e023

Please sign in to comment.