-
Notifications
You must be signed in to change notification settings - Fork 247
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
base: develop
Are you sure you want to change the base?
Conversation
Jenkins BuildsClick to see older builds (16)
|
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?
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.
4187ae9
to
a417efe
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #6184 +/- ##
===========================================
- Coverage 61.27% 61.21% -0.06%
===========================================
Files 833 833
Lines 109910 109913 +3
===========================================
- Hits 67348 67287 -61
- Misses 34711 34750 +39
- Partials 7851 7876 +25
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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