File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/src/main/java/org/thoughtcrime/securesms/conversation/v2/mention Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -163,11 +163,11 @@ class MentionViewModel(
163
163
true
164
164
)
165
165
166
- // Other members from this groupv2
166
+ // Get other members
167
167
val otherMembers = if (recipient.isGroupV2Recipient) {
168
168
val groupId = AccountId (recipient.address.toString())
169
169
170
- // Get members of the group
170
+ // Get members of the group from the config
171
171
val rawMembers = configFactory.withGroupConfigs(groupId) {
172
172
it.groupMembers.allWithStatus()
173
173
}
@@ -185,8 +185,8 @@ class MentionViewModel(
185
185
buildMember(id, name, id in moderatorIDs, false )
186
186
}.sortedBy { it.name }
187
187
} 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
190
190
val contactMap = contacts.associateBy { it.accountID }
191
191
memberIDs.asSequence()
192
192
.filter { it != myId }
You can’t perform that action at this time.
0 commit comments