Fix crash on conversation settings screen for longtime-unregistered users.
This commit is contained in:
parent
c1df628079
commit
ba08dbef5f
1 changed files with 5 additions and 1 deletions
|
@ -65,7 +65,11 @@ class ConversationSettingsRepository(
|
|||
|
||||
fun getIdentity(recipientId: RecipientId, consumer: (IdentityRecord?) -> Unit) {
|
||||
SignalExecutors.BOUNDED.execute {
|
||||
consumer(ApplicationDependencies.getProtocolStore().aci().identities().getIdentityRecord(recipientId).orNull())
|
||||
if (SignalStore.account().aci != null && SignalStore.account().pni != null) {
|
||||
consumer(ApplicationDependencies.getProtocolStore().aci().identities().getIdentityRecord(recipientId).orNull())
|
||||
} else {
|
||||
consumer(null)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue