Skip to content

Commit a3cf235

Browse files
committed
Comments cleanup
1 parent dcfa4c4 commit a3cf235

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/main/java/org/thoughtcrime/securesms/conversation/v2/mention/MentionViewModel.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ class MentionViewModel(
163163
true
164164
)
165165

166-
// Other members from this groupv2
166+
// Get other members
167167
val otherMembers = if (recipient.isGroupV2Recipient) {
168168
val groupId = AccountId(recipient.address.toString())
169169

170-
// Get members of the group
170+
// Get members of the group from the config
171171
val rawMembers = configFactory.withGroupConfigs(groupId) {
172172
it.groupMembers.allWithStatus()
173173
}
@@ -185,8 +185,8 @@ class MentionViewModel(
185185
buildMember(id, name, id in moderatorIDs, false)
186186
}.sortedBy { it.name }
187187
} else {
188-
// Fallback to only local contacts
189-
val contacts = contactDatabase.getContacts(memberIDs)
188+
// For communities and one-on-one conversations
189+
val contacts = contactDatabase.getContacts(memberIDs) // Get members from contacts based on memberIDs
190190
val contactMap = contacts.associateBy { it.accountID }
191191
memberIDs.asSequence()
192192
.filter { it != myId }

0 commit comments

Comments
 (0)