mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-22 18:55:12 +00:00
Apply automated ktlint 1.2.1 formatting.
This commit is contained in:
committed by
Clark Chen
parent
e861c022da
commit
cfb4377de3
@@ -216,7 +216,7 @@ class ImportExportTest {
|
||||
|
||||
@Test
|
||||
fun largeNumberOfMessagesAndChats() {
|
||||
val NUM_INDIVIDUAL_RECIPIENTS = 1000
|
||||
val numIndividualRecipients = 1000
|
||||
val numIndividualMessages = 500
|
||||
val numGroupMessagesPerPerson = 200
|
||||
|
||||
@@ -225,7 +225,7 @@ class ImportExportTest {
|
||||
val recipients = ArrayList<Recipient>(1010)
|
||||
val chats = ArrayList<Chat>(1010)
|
||||
var id = 3L
|
||||
for (i in 0 until NUM_INDIVIDUAL_RECIPIENTS) {
|
||||
for (i in 0 until numIndividualRecipients) {
|
||||
val recipientId = id++
|
||||
recipients.add(
|
||||
Recipient(
|
||||
|
||||
@@ -139,7 +139,9 @@ class BobClient(val serviceId: ServiceId, val e164: String, val identityKeyPair:
|
||||
override fun isTrustedIdentity(address: SignalProtocolAddress?, identityKey: IdentityKey?, direction: IdentityKeyStore.Direction?): Boolean = true
|
||||
override fun loadSession(address: SignalProtocolAddress?): SessionRecord = aliceSessionRecord ?: SessionRecord()
|
||||
override fun saveIdentity(address: SignalProtocolAddress?, identityKey: IdentityKey?): Boolean = false
|
||||
override fun storeSession(address: SignalProtocolAddress?, record: SessionRecord?) { aliceSessionRecord = record }
|
||||
override fun storeSession(address: SignalProtocolAddress?, record: SessionRecord?) {
|
||||
aliceSessionRecord = record
|
||||
}
|
||||
override fun getSubDeviceSessions(name: String?): List<Int> = emptyList()
|
||||
override fun containsSession(address: SignalProtocolAddress?): Boolean = aliceSessionRecord != null
|
||||
override fun getIdentity(address: SignalProtocolAddress?): IdentityKey = SignalStore.account().aciIdentityKey.publicKey
|
||||
|
||||
Reference in New Issue
Block a user