mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-09-14 04:37:34 +01:00
Load identity record when viewing safety number.
This commit is contained in:
committed by
Greyson Parrelli
parent
cc7f88ea2d
commit
4db961b6bf
+3
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user