Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Fix linked device registation for UP
Browse files Browse the repository at this point in the history
Change discoverableByPhoneNumber
  • Loading branch information
p1gp1g committed Mar 21, 2024
1 parent 01f404f commit 78fba0b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import org.thoughtcrime.securesms.AppCapabilities
import org.thoughtcrime.securesms.database.loaders.DeviceListLoader
import org.thoughtcrime.securesms.dependencies.ApplicationDependencies
import org.thoughtcrime.securesms.devicelist.Device
import org.thoughtcrime.securesms.keyvalue.PhoneNumberPrivacyValues.PhoneNumberDiscoverabilityMode
import org.thoughtcrime.securesms.keyvalue.SignalStore
import org.thoughtcrime.securesms.push.AccountManagerFactory
import org.thoughtcrime.securesms.registration.RegistrationRepository
Expand Down Expand Up @@ -95,7 +96,7 @@ class MollySocketLinkedDevice(val context: Context) {
unidentifiedAccessKey = null,
unrestrictedUnidentifiedAccess = true,
capabilities = AppCapabilities.getCapabilities(true),
discoverableByPhoneNumber = SignalStore.phoneNumberPrivacy().isDiscoverableByPhoneNumber,
discoverableByPhoneNumber = SignalStore.phoneNumberPrivacy().phoneNumberDiscoverabilityMode == PhoneNumberDiscoverabilityMode.DISCOVERABLE,
name = Base64.encodeWithPadding(encryptedDeviceName),
pniRegistrationId = SignalStore.account().pniRegistrationId,
recoveryPassword = null
Expand Down

0 comments on commit 78fba0b

Please sign in to comment.