Skip to content

Commit 592dfeb

Browse files
committed
refactor(Message): Enforce "latestCalendarEventResponse" value in initLocalValues()
1 parent 29535b2 commit 592dfeb

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

app/src/main/java/com/infomaniak/mail/data/cache/mailboxContent/RefreshController.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,7 @@ class RefreshController @Inject constructor(
708708
isTrashed = folder.role == FolderRole.TRASH,
709709
isFromSearch = false,
710710
draftLocalUuid = null,
711+
latestCalendarEventResponse = null,
711712
)
712713

713714
if (existingMessage == null) folder.messages.add(remoteMessage)

app/src/main/java/com/infomaniak/mail/data/cache/mailboxContent/ThreadController.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ class ThreadController @Inject constructor(
9898
isTrashed = folderRole == FolderRole.TRASH,
9999
isFromSearch = localMessage == null,
100100
draftLocalUuid = localMessage?.draftLocalUuid,
101+
latestCalendarEventResponse = null,
101102
)
102103

103104
localMessage?.let(remoteMessage::keepHeavyData)

app/src/main/java/com/infomaniak/mail/data/models/message/Message.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class Message : RealmObject {
201201
isTrashed: Boolean,
202202
isFromSearch: Boolean,
203203
draftLocalUuid: String?,
204-
latestCalendarEventResponse: CalendarEventResponse? = null,
204+
latestCalendarEventResponse: CalendarEventResponse?,
205205
messageIds: RealmSet<String>? = null,
206206
) {
207207
this.date = date

0 commit comments

Comments
 (0)