Skip to content
Snippets Groups Projects
Commit 3b4f1587 authored by aguestuser's avatar aguestuser
Browse files

[498] sc: restore sending profile key upon receiving first receipt

parent 794b5c78
No related branches found
No related tags found
1 merge request!599[#498] Resolve contact ids
...@@ -235,9 +235,6 @@ class SignalReceiver(private val app: Application) { ...@@ -235,9 +235,6 @@ class SignalReceiver(private val app: Application) {
private suspend fun processReceipt(envelope: SignalServiceEnvelope, account: VerifiedAccount): Job? { private suspend fun processReceipt(envelope: SignalServiceEnvelope, account: VerifiedAccount): Job? {
if(!envelope.isUnidentifiedSender) { if(!envelope.isUnidentifiedSender) {
// NOTE: we should only receive N of these upon initiating a conversation with a new contact...
// (where N is the number of devices a recipient has)
// - q: should this also be able to store a phone number if we only have a UUID?
app.contactStore.storeUuidOrPhoneNumber( app.contactStore.storeUuidOrPhoneNumber(
accountId = account.username, accountId = account.username,
contactPhoneNumber = envelope.sourceE164.get(), contactPhoneNumber = envelope.sourceE164.get(),
...@@ -257,7 +254,7 @@ class SignalReceiver(private val app: Application) { ...@@ -257,7 +254,7 @@ class SignalReceiver(private val app: Application) {
uuid = UUID.fromString(envelope.sourceUuid.get()), uuid = UUID.fromString(envelope.sourceUuid.get()),
) )
// we don't think this actually does anything meaningful... might restore! // we don't think this actually does anything meaningful... might restore!
// app.signalSender.sendProfileKey(account, envelope.asSignalcAddress()) app.signalSender.sendProfileKey(account, envelope.asSignalcAddress())
} }
// If we are receiving a prekey bundle, this is the beginning of a new session, the initiation // If we are receiving a prekey bundle, this is the beginning of a new session, the initiation
// of which might have depleted our prekey reserves below the level we want to keep on hand // of which might have depleted our prekey reserves below the level we want to keep on hand
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment