-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrated to use drafts().send() to send drafts(fixed deleting drafts …
…after sending).| #74
- Loading branch information
Showing
4 changed files
with
33 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* © 2016-present FlowCrypt a.s. Limitations apply. Contact [email protected] | ||
* Contributors: DenBond7 | ||
* Contributors: denbond7 | ||
*/ | ||
|
||
package com.flowcrypt.email.api.email.model | ||
|
@@ -42,6 +42,7 @@ data class OutgoingMessageInfo( | |
@Expose val timestamp: Long = System.currentTimeMillis(), | ||
@Expose val signature: String? = null, | ||
@Expose val quotedTextForReply: String? = null, | ||
@Expose val draftId: String? = null, | ||
) : Parcelable { | ||
|
||
@IgnoredOnParcel | ||
|
@@ -89,6 +90,7 @@ data class OutgoingMessageInfo( | |
if (timestamp != other.timestamp) return false | ||
if (signature != other.signature) return false | ||
if (quotedTextForReply != other.quotedTextForReply) return false | ||
if (draftId != other.draftId) return false | ||
return true | ||
} | ||
|
||
|
@@ -110,6 +112,7 @@ data class OutgoingMessageInfo( | |
result = 31 * result + timestamp.hashCode() | ||
result = 31 * result + (signature?.hashCode() ?: 0) | ||
result = 31 * result + (quotedTextForReply?.hashCode() ?: 0) | ||
result = 31 * result + (draftId?.hashCode() ?: 0) | ||
return result | ||
} | ||
|
||
|
@@ -142,7 +145,8 @@ data class OutgoingMessageInfo( | |
MessageState.NEW.value | ||
}, | ||
password = password, | ||
attachmentsDirectory = UUID.randomUUID().toString() | ||
attachmentsDirectory = UUID.randomUUID().toString(), | ||
draftId = draftId | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters