mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-24 10:51:27 +01:00
Add Banners to all reminder usages behind remote config.
This commit is contained in:
committed by
mtang-signal
parent
f296fcd716
commit
e2e6a73e8d
@@ -6,7 +6,6 @@
|
||||
package org.thoughtcrime.securesms.registration.data
|
||||
|
||||
import okio.ByteString.Companion.toByteString
|
||||
import org.signal.libsignal.protocol.IdentityKey
|
||||
import org.signal.libsignal.protocol.IdentityKeyPair
|
||||
import org.signal.libsignal.protocol.state.KyberPreKeyRecord
|
||||
import org.signal.libsignal.protocol.state.SignedPreKeyRecord
|
||||
@@ -44,11 +43,11 @@ object LocalRegistrationMetadataUtil {
|
||||
}.build()
|
||||
}
|
||||
|
||||
fun LocalRegistrationMetadata.getAciIdentityKeyPair() : IdentityKeyPair {
|
||||
fun LocalRegistrationMetadata.getAciIdentityKeyPair(): IdentityKeyPair {
|
||||
return IdentityKeyPair(aciIdentityKeyPair.toByteArray())
|
||||
}
|
||||
|
||||
fun LocalRegistrationMetadata.getPniIdentityKeyPair() : IdentityKeyPair {
|
||||
fun LocalRegistrationMetadata.getPniIdentityKeyPair(): IdentityKeyPair {
|
||||
return IdentityKeyPair(pniIdentityKeyPair.toByteArray())
|
||||
}
|
||||
|
||||
|
||||
@@ -399,7 +399,7 @@ class RegistrationViewModel : ViewModel() {
|
||||
allowedToRequestCode = networkResult.body.allowedToRequestCode,
|
||||
challengesRequested = Challenge.parse(networkResult.body.requestedInformation),
|
||||
verified = networkResult.body.verified,
|
||||
inProgress = false
|
||||
inProgress = false
|
||||
)
|
||||
}
|
||||
},
|
||||
@@ -408,7 +408,7 @@ class RegistrationViewModel : ViewModel() {
|
||||
store.update {
|
||||
it.copy(
|
||||
sessionCreationError = error,
|
||||
inProgress = false
|
||||
inProgress = false
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user