-
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
Extend peersyncing to sync 1-to-1 messages #4962
Conversation
Jenkins BuildsClick to see older builds (138)
|
1ec5cd8
to
ff27bff
Compare
Any chance to get a review for this one? :) |
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.
looks ok, I can't remember if RENAME
is supported in our sqlite version, that's the only thing, but if it works fine on both android/ios, that should be ok
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.
Great PR, some minor questions.
protocol/messenger_peersyncing.go
Outdated
@@ -133,22 +151,22 @@ func (m *Messenger) sendDatasyncOffers() error { | |||
continue | |||
} | |||
|
|||
availableMessages, err := m.peersyncing.AvailableMessagesByGroupIDs(chatIDs, maxAdvertiseMessages) | |||
availableMessages, err := m.peersyncing.AvailableMessagesByChatIDs(chatIDs, maxAdvertiseMessages) |
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.
We seem to be constructing a chatID->msgID map in all cases when we invoke m.peersyncing.AvailableMessagesByChatIDs
- maybe makes sense to make the latter fn return that map instead. (unless i missed some other uses)
cc62324
to
0ba86f7
Compare
f86f812
to
d9a6fbf
Compare
09cd871
to
a50fb55
Compare
a50fb55
to
f8abe7f
Compare
Fixes status-im/status-mobile#18957
Updates peer syncing so that it works not only for communities but also for one-to-one chats.