Load identity record when viewing safety number.

This commit is contained in:
Michelle Tang
2026-08-14 16:30:15 -04:00
committed by Greyson Parrelli
parent cc7f88ea2d
commit 4db961b6bf
@@ -177,7 +177,9 @@ class IndividualSettingsViewModel(
_actions.send(ConversationSettingsAction.AddContact(state.recipient))
}
IndividualSettingsEvent.ViewSafetyNumberClicked -> {
_actions.send(ConversationSettingsAction.ShowSafetyNumber(state.identityRecord))
val identityRecord = repository.getIdentity(recipientId)
_state.update { it.copy(identityRecord = identityRecord) }
_actions.send(ConversationSettingsAction.ShowSafetyNumber(identityRecord))
}
is IndividualSettingsEvent.SharedMediaClicked -> {
_actions.send(sharedMediaClickAction(event.mediaRecord, event.isLtr))