Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
signalboost
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
team-friendo
signalboost
Commits
3b4f1587
Commit
3b4f1587
authored
4 years ago
by
aguestuser
Browse files
Options
Downloads
Patches
Plain Diff
[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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
signalc/src/main/kotlin/info/signalboost/signalc/logic/SignalReceiver.kt
+1
-4
1 addition, 4 deletions
...n/kotlin/info/signalboost/signalc/logic/SignalReceiver.kt
with
1 addition
and
4 deletions
signalc/src/main/kotlin/info/signalboost/signalc/logic/SignalReceiver.kt
+
1
−
4
View file @
3b4f1587
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment