Implement ability to view badges and modify whether they appear.

Note: this is available in staging only.
This commit is contained in:
Alex Hart
2021-09-20 17:05:31 -03:00
parent 556ca5a573
commit 77cf029fdc
48 changed files with 1880 additions and 100 deletions

View File

@@ -2,6 +2,7 @@ package org.thoughtcrime.securesms.database
import android.net.Uri
import org.signal.zkgroup.profiles.ProfileKeyCredential
import org.thoughtcrime.securesms.badges.models.Badge
import org.thoughtcrime.securesms.conversation.colors.AvatarColor
import org.thoughtcrime.securesms.conversation.colors.ChatColors
import org.thoughtcrime.securesms.groups.GroupId
@@ -75,7 +76,8 @@ object RecipientDatabaseTestUtils {
false
),
extras: Recipient.Extras? = null,
hasGroupsInCommon: Boolean = false
hasGroupsInCommon: Boolean = false,
badges: List<Badge> = emptyList()
): Recipient = Recipient(
recipientId,
RecipientDetails(
@@ -128,7 +130,8 @@ object RecipientDatabaseTestUtils {
aboutEmoji,
syncExtras,
extras,
hasGroupsInCommon
hasGroupsInCommon,
badges
),
participants
),