-
Notifications
You must be signed in to change notification settings - Fork 265
feat(backup): implement emoji reaction backup #7163
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
base: develop
Are you sure you want to change the base?
Conversation
Jenkins BuildsClick to see older builds (16)
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #7163 +/- ##
============================================
+ Coverage 35.00% 59.99% +24.98%
============================================
Files 798 813 +15
Lines 111323 113508 +2185
============================================
+ Hits 38972 68098 +29126
+ Misses 67476 38566 -28910
- Partials 4875 6844 +1969
Flags with carried forward coverage won't be shown. Click here to find out more.
|
137d14e to
332cf3c
Compare
| LEFT JOIN pin_messages pm | ||
| ON pm.message_id = m1.id AND pm.pinned = 1 | ||
| LEFT JOIN emoji_reactions e | ||
| ON e.message_id = m1.id AND NOT(e.retracted) |
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.
Shouldn't AND NOT(e.retracted) be after WHERE? 🤔
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.
I guess both work. This makes it clear that it's a condition only on the emoji_reactions. Especially since the query is already a bit confusing, since it fetches the same message multiple times for the reactions.
protocol/message_persistence.go
Outdated
|
|
||
| rows, err := db.db.Query(query) | ||
| if err != nil { | ||
| if err == sql.ErrNoRows { |
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.
| if err == sql.ErrNoRows { | |
| if errors.Is(err, sql.ErrNoRows) { |
0c4b472 to
b2c8f71
Compare
b2c8f71 to
b0c7910
Compare
|
@osmaczko friendly reminder to review |
Fixes status-im/status-app#19343
Enables users to backup and sync emoji reactions along with messages during a pairing.
emoji-backup.webm