فهرست منبع

Merge pull request #1448 from deltachat/fix-clearing-drafts

fix clearing drafts.
cyBerta 3 سال پیش
والد
کامیت
8b40d79db3
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      deltachat-ios/Chat/DraftModel.swift

+ 1 - 1
deltachat-ios/Chat/DraftModel.swift

@@ -49,7 +49,7 @@ public class DraftModel {
     }
 
     public func save(context: DcContext) {
-        if text == nil && quoteMessage == nil {
+        if (text?.isEmpty ?? true) && quoteMessage == nil {
             context.setDraft(chatId: chatId, message: nil)
             return
         }