- if (e164sMatchButPnisDont) {
- logger.debug("Matching E164s, but the PNIs differ! Trusting our local pair.");
- // TODO [pnp] Schedule CDS fetch?
- pni = local.getPni().get();
- e164 = local.getNumber().get();
- } else if (pnisMatchButE164sDont) {
- logger.debug("Matching PNIs, but the E164s differ! Trusting our local pair.");
+ if (!account.isPrimaryDevice() && (e164sMatchButPnisDont || pnisMatchButE164sDont)) {
+ if (e164sMatchButPnisDont) {
+ logger.debug("Matching E164s, but the PNIs differ! Trusting our local pair.");
+ } else if (pnisMatchButE164sDont) {
+ logger.debug("Matching PNIs, but the E164s differ! Trusting our local pair.");
+ }