Преглед на файлове

allow resetting quote messages to null

cyberta преди 3 години
родител
ревизия
10ff796fcc
променени са 1 файла, в които са добавени 0 реда и са изтрити 3 реда
  1. 0 3
      DcCore/DcCore/DC/Wrapper.swift

+ 0 - 3
DcCore/DcCore/DC/Wrapper.swift

@@ -1033,9 +1033,6 @@ public class DcMsg {
             return DcMsg(pointer: msgpointer)
         }
         set {
-            if newValue == nil {
-                fatalError("Quote message cannot be set to null!")
-            }
             dc_msg_set_quote(messagePointer, newValue?.messagePointer)
         }
     }