Browse Source

implement accountId for DcEvent

cyberta 4 years ago
parent
commit
598b40663a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      DcCore/DcCore/DC/Wrapper.swift

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

@@ -736,6 +736,10 @@ public class DcEvent {
         dc_event_unref(eventPointer)
     }
 
+    public var accountId: Int {
+        return Int(dc_event_get_account_id(eventPointer))
+    }
+
     public var id: Int32 {
         return Int32(dc_event_get_id(eventPointer))
     }