Show member labels in conversation settings.

This commit is contained in:
jeffrey-signal
2026-02-09 13:09:46 -05:00
committed by Greyson Parrelli
parent 0199cd24ef
commit d7b7727aa6
13 changed files with 252 additions and 92 deletions

View File

@@ -1289,6 +1289,18 @@ class GroupTable(context: Context?, databaseHelper: SignalDatabase?) :
null
}
}
/**
* Gets all member labels in the group. Only includes members that have a non-blank label.
*/
fun memberLabelsByAci(): Map<ACI, MemberLabel> = buildMap {
decryptedGroup.members.forEach { member ->
if (member.labelString.isNotBlank()) {
val aci = ACI.parseOrNull(member.aciBytes) ?: return@forEach
put(aci, MemberLabel(member.labelEmoji, member.labelString))
}
}
}
}
@Throws(BadGroupIdException::class)