-
Notifications
You must be signed in to change notification settings - Fork 6
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: Correctly update Message fields #2236
fix: Correctly update Message fields #2236
Conversation
c26faf6
to
0b40d83
Compare
280ebc3
to
22e5c6f
Compare
0b40d83
to
2172c7b
Compare
22e5c6f
to
74ec48c
Compare
b0053f3
to
6b21ef2
Compare
74ec48c
to
00ee591
Compare
5a5601e
to
eaa2a0b
Compare
eaa2a0b
to
528fa95
Compare
This PR/issue depends on: |
6d30941
to
cd8adda
Compare
528fa95
to
3c96f33
Compare
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.
Also we should be able to a fun keepLocalValues(localMessage: Message)
as follows and only call it when adding new message in the snooze strategy and when we already have a local message in the search. The reste of the time we can call the already existing initLocalValues()
fun keepLocalValues(localMessage: Message) {
initLocalValues(
isFullyDownloaded = localMessage._isFullyDownloaded,
isTrashed = localMessage.isTrashed,
messageIds = localMessage.messageIds,
draftLocalUuid = localMessage.draftLocalUuid,
isFromSearch = localMessage.isFromSearch,
isDeletedOnApi = localMessage.isDeletedOnApi,
latestCalendarEventResponse = localMessage.latestCalendarEventResponse,
swissTransferFiles = localMessage.swissTransferFiles,
)
keepHeavyData(localMessage)
}
app/src/main/java/com/infomaniak/mail/data/cache/mailboxContent/ThreadController.kt
Show resolved
Hide resolved
app/src/main/java/com/infomaniak/mail/data/cache/mailboxContent/CustomRefreshStrategies.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/infomaniak/mail/data/cache/mailboxContent/ThreadController.kt
Outdated
Show resolved
Hide resolved
|
Depends on #2240