Explorar el Código

fix clearing drafts. setting empty drafts was never really allowed (the error was there all the time), but checks were easygoing before

B. Petersen hace 3 años
padre
commit
b08d9425e3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
         }