浏览代码

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)
         }
     }