Skip to content

Commit

Permalink
docs: Enhance explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Mar 10, 2025
1 parent 416e32d commit 02207b5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,8 @@ class NewMessageViewModel @Inject constructor(
return ApiRepository.getDraft(draftResource!!).data?.also { draft ->

/**
* If we are opening for the 1st time an existing Draft created somewhere else (ex: webmail),
* we need to set all of its Attachments to `FINISHED`, so we don't try to upload them again.
* If we are opening for the 1st time an existing Draft created somewhere else (ex: webmail), we need to
* set all of its Attachments to [AttachmentUploadStatus.FINISHED], so we don't try to upload them again.
*/
draft.attachments.forEach {
it.setUploadStatus(AttachmentUploadStatus.FINISHED, draft, "fetchDraft at NewMessage opening")
Expand Down

0 comments on commit 02207b5

Please sign in to comment.