File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
app/src/main/java/com/infomaniak/mail Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,10 @@ class Attachment : EmbeddedRealmObject, Attachable {
82
82
* After uploading an Attachment, we replace the local version with the remote one.
83
83
* The remote one doesn't know about local data, so we have to backup them.
84
84
*/
85
- fun backupLocalData (oldAttachment : Attachment , uploadStatus : UploadStatus , draft : Draft ) {
85
+ fun backupLocalData (oldAttachment : Attachment , draft : Draft ) {
86
86
localUuid = oldAttachment.localUuid
87
87
uploadLocalUri = oldAttachment.uploadLocalUri
88
- setUploadStatus(uploadStatus , draft, " backupLocalData -> setUploadStatus" )
88
+ setUploadStatus(UploadStatus . FINISHED , draft, " backupLocalData -> setUploadStatus" )
89
89
}
90
90
91
91
fun setUploadStatus (uploadStatus : UploadStatus , draft : Draft ? = null, step : String = "") {
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ import com.infomaniak.mail.R
34
34
import com.infomaniak.mail.data.api.ApiRoutes
35
35
import com.infomaniak.mail.data.cache.mailboxContent.DraftController
36
36
import com.infomaniak.mail.data.models.Attachment
37
- import com.infomaniak.mail.data.models.Attachment.UploadStatus
38
37
import com.infomaniak.mail.data.models.mailbox.Mailbox
39
38
import com.infomaniak.mail.ui.main.SnackbarManager
40
39
import com.infomaniak.mail.ui.main.thread.actions.DownloadAttachmentProgressDialogArgs
@@ -191,7 +190,7 @@ object AttachmentExtensions {
191
190
SentryLog .d(ATTACHMENT_TAG , " When removing uploaded attachment, we found (uuids to localUris): $uuidToLocalUri " )
192
191
SentryLog .d(ATTACHMENT_TAG , " Target uploadLocalUri is: $uploadLocalUri " )
193
192
194
- remoteAttachment.backupLocalData(oldAttachment = this @updateLocalAttachment, UploadStatus . FINISHED , draft)
193
+ remoteAttachment.backupLocalData(oldAttachment = this @updateLocalAttachment, draft)
195
194
196
195
SentryLog .d(ATTACHMENT_TAG , " Uploaded attachment uuid: ${remoteAttachment.uuid} " )
197
196
SentryLog .d(ATTACHMENT_TAG , " Uploaded attachment localUuid: ${remoteAttachment.localUuid} " )
You can’t perform that action at this time.
0 commit comments