Signal-iOS/SignalServiceKit/src/Account
Jordan Rose 16c1249b24 PNP: Clear phone number sharing flag after getting a delivery receipt
When someone sends a message to your PNI, your responses (from your
ACI) must include a PNI signature, and the sealed sender certificate
you use during this period should include your phone number. This
confirms to the other user that your ACI is associated with your PNI.

However, as soon as they have processed a PniSignature, there's no
need to keep wasting space in messages. Detect this using the
following conditions:
- You received a delivery receipt from them.
- The original message was sent via sealed sender (so the server
  can't synthesize a delivery receipt).
- All their other devices have already sent delivery receipts for this
  message.
- The original message actually had a PniSignature in it.
- The original message's PniSignature matches your current PNI
  (relevant if you change your number and then get an incoming message
  from the same person at your new PNI).

Additionally, reset phone number sharing for *everyone* when you
change your number; they've contacted you at your old PNI,
representing your old number, and even if you reply you can no longer
claim that PNI as yours.
2022-05-20 10:48:22 -07:00
..
AccountServiceClient.swift Refresh PNI pre-keys along with ACI pre-keys 2022-04-07 14:06:27 -07:00
CreatePreKeysOperation.swift Reset the identity key if initial pre-key creation fails 2022-04-22 18:11:42 -07:00
RefreshPreKeysOperation.swift Refresh PNI pre-keys along with ACI pre-keys 2022-04-07 14:06:27 -07:00
RotateSignedKeyOperation.swift Move throttling logic inside RotateSignedKeyOperation 2022-04-07 14:06:27 -07:00
TSAccountManager.h OWSMessageDecrypter should use destinationUuid to choose local stores 2022-04-14 16:47:46 -07:00
TSAccountManager.m PNP: Clear phone number sharing flag after getting a delivery receipt 2022-05-20 10:48:22 -07:00
TSAccountManager.swift merged master and pod files 2022-03-15 12:49:11 +01:00
TSPreKeyManager.h TSPreKeyManager: check for PNI signed pre-key upload failure too 2022-04-07 10:23:39 -07:00
TSPreKeyManager.m Refresh PNI pre-keys along with ACI pre-keys 2022-04-07 14:06:27 -07:00
TSPreKeyManager.swift Deprecate REST, Part 1 2021-08-18 14:25:36 -03:00