Преглед изворни кода

WIP: project compiling but introduced some FIXMEs

Alla Reinsch пре 7 година
родитељ
комит
a0b56be0f7

+ 2 - 1
deltachat-ios/ChatViewController.swift

@@ -25,7 +25,8 @@ class ChatViewController: MessagesViewController {
     
     func getMessageIds() {
         let c_messageIds = mrmailbox_get_chat_msgs(mailboxPointer, UInt32(self.chatId), 0, 0)
-        self.messageIds = Utils.copyAndFreeArray(inputArray: c_messageIds)
+        // FIXME!
+        // self.messageIds = Utils.copyAndFreeArray(inputArray: c_messageIds)
     }
     
     required init?(coder aDecoder: NSCoder) {

+ 2 - 1
deltachat-ios/ContactViewController.swift

@@ -27,7 +27,8 @@ class ContactViewController: UIViewController {
     
     override func viewWillAppear(_ animated: Bool) {
         let c_contacts = mrmailbox_get_known_contacts(mailboxPointer, nil)
-        self.contactIds = Utils.copyAndFreeArray(inputArray: c_contacts)
+        // FIXME!
+        // self.contactIds = Utils.copyAndFreeArray(inputArray: c_contacts)
         contactTableDataSource.contacts = self.contactIds
         contactTable.reloadData()
     }

+ 5 - 2
deltachat-ios/Utils.swift

@@ -12,7 +12,9 @@ import UIKit
 struct Utils {
     static func getContactIds() -> [Int] {
         let c_contacts = mrmailbox_get_known_contacts(mailboxPointer, nil)
-        return Utils.copyAndFreeArray(inputArray: c_contacts)
+        // FIXME!
+        // return Utils.copyAndFreeArray(inputArray: c_contacts)
+        return []
     }
 
     
@@ -20,7 +22,8 @@ struct Utils {
         var acc:[Int] = []
         let len = carray_count(inputArray)
         for i in 0 ..< len {
-            acc.append(Int(carray_get_uint32(inputArray, i)))
+            // FIXME!
+            // acc.append(Int(carray_get_uint32(inputArray, i)))
         }
         carray_free(inputArray)
         return acc