We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebaac2f commit fc83ab1Copy full SHA for fc83ab1
app/src/main/java/com/infomaniak/mail/ui/newMessage/NewMessageViewModel.kt
@@ -633,7 +633,7 @@ class NewMessageViewModel @Inject constructor(
633
private fun saveDraftToLocal(action: DraftAction) {
634
SentryLog.d("Draft", "Save Draft to local")
635
636
- draft.subject?.takeIf { it.length > SUBJECT_MAX_LENGTH }?.let { draft.subject = it.substring(0, SUBJECT_MAX_LENGTH) }
+ draft.subject = draft.subject?.take(SUBJECT_MAX_LENGTH)
637
draft.body = draft.uiBody.textToHtml() + (draft.uiSignature ?: "") + (draft.uiQuote ?: "")
638
draft.action = action
639
0 commit comments