         var count: Int = 0
         let lockQueue = DispatchQueue(label: "nl.evict.AppMessage.ChatLockQueue", attributes: [])
         lockQueue.sync {
+            print("!!!!!")
+            print("publicdb.data")
+            print(self.dataID)
+//            print(EVCloudData.publicDB.data[self.dataID])
             count = EVCloudData.publicDB.data[self.dataID]!.count
             if self.localData.count != count {
                 self.localData = [JSQMessage?](repeating: nil, count: count)


    var localData: [JSQMessage?] = []

    var picker: UzysAssetsPickerController = UzysAssetsPickerController()

    var recordIdMeForConnection: String = ""
    var recordIdOtherForConnection: String = ""
    var viewAppeared = false

    // Start the conversation
    func setContact(_ recordId: String, firstName: String, lastName: String) {
        chatWithId = "42"
        chatWithFirstName = "Spotted"
        chatWithLastName = "Group"
        chatWithDisplayName = "\(firstName) \(lastName)"
        if dataID != "" {
            EVCloudData.publicDB.disconnect(dataID)
