-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(backup)_: dont generate a CR if the synced contact is mutual #6184
Conversation
Jenkins BuildsClick to see older builds (34)
|
814e375
to
029ea03
Compare
@@ -601,6 +601,7 @@ func (m *Messenger) generateContactRequest(clock uint64, timestamp uint64, conta | |||
contactRequest := common.NewMessage() | |||
contactRequest.ChatId = contact.ID | |||
contactRequest.WhisperTimestamp = timestamp | |||
contactRequest.Timestamp = timestamp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this, the message showed as being sent in 1970
029ea03
to
4187ae9
Compare
@osmaczko @igor-sirotin friendly reminder to review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TestPairAcceptContactRequest
is failing, can you please take a look?
4187ae9
to
a417efe
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #6184 +/- ##
===========================================
+ Coverage 60.05% 61.46% +1.40%
===========================================
Files 832 834 +2
Lines 109840 109948 +108
===========================================
+ Hits 65961 67576 +1615
+ Misses 36148 34486 -1662
- Partials 7731 7886 +155
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@osmaczko fixed! Tests are green now. @igor-sirotin you can review too |
a417efe
to
1360ce9
Compare
Fixes status-im/status-desktop#15849 The problem was that we generated a "fake" contact request for all synced contacts. While it's true that even mutual contacts have a contact request, we don't need it anymore once mutual and since we don't sync messages, we had to generate it with a default message and that message looked very out of place after a recovery.
1360ce9
to
257090c
Compare
Fixes status-im/status-desktop#15849
The problem was that we generated a "fake" contact request for all synced contacts. While it's true that even mutual contacts have a contact request, we don't need it anymore once mutual and since we don't sync messages, we had to generate it with a default message and that message looked very out of place after a recovery.
Mutual contact:
Contact that sent us a CR (not sure why the image and name don't show:
Contact to whom we sent a CR:
Now, the CR messages at least make sense