Add education sheet for key transparency.

This commit is contained in:
Michelle Tang
2026-01-12 11:59:37 -05:00
parent 6a423cb18b
commit 5759609a11
6 changed files with 227 additions and 0 deletions

View File

@@ -367,6 +367,7 @@ import org.thoughtcrime.securesms.util.toMillis
import org.thoughtcrime.securesms.util.viewModel
import org.thoughtcrime.securesms.util.views.Stub
import org.thoughtcrime.securesms.util.visible
import org.thoughtcrime.securesms.verify.VerifyAutomaticallyEducationSheet
import org.thoughtcrime.securesms.verify.VerifyIdentityActivity
import org.thoughtcrime.securesms.wallpaper.ChatWallpaper
import org.thoughtcrime.securesms.wallpaper.ChatWallpaperDimLevelUtil
@@ -661,6 +662,7 @@ class ConversationFragment :
presentGroupConversationSubtitle(createGroupSubtitleString(viewModel.titleViewParticipantsSnapshot))
presentActionBarMenu()
presentStoryRing()
presentVerifyAutomaticallySheet()
observeConversationThread()
@@ -1414,6 +1416,12 @@ class ConversationFragment :
}
}
private fun presentVerifyAutomaticallySheet() {
if (RemoteConfig.keyTransparency && !SignalStore.uiHints.hasSeenVerifyAutomaticallySheet() && viewModel.recipientSnapshot?.isIndividual == true) {
VerifyAutomaticallyEducationSheet.show(parentFragmentManager)
}
}
private fun presentInputReadyState(inputReadyState: InputReadyState) {
presentConversationTitle(inputReadyState.conversationRecipient)