                         (currentData:FMutableData!) in
                         guard let userName = self.userName else {return FTransactionResult.successWithValue(currentData)}
                         let unreadCountData = currentData.childDataByAppendingPath("\(userName)_unreadCount")
-//                        let totalCountData = currentData.childDataByAppendingPath("\(self.userName ?? "")_totalCount")
-//                        
-//                        var totalCount = totalCountData.value as? Int
-//                        if totalCount == nil {
-//                            totalCount = 0
-//                        }
-//                        totalCountData.value = totalCount! - 1
+                        //                        let totalCountData = currentData.childDataByAppendingPath("\(self.userName ?? "")_totalCount")
+                        //
+                        //                        var totalCount = totalCountData.value as? Int
+                        //                        if totalCount == nil {
+                        //                            totalCount = 0
+                        //                        }
+                        //                        totalCountData.value = totalCount! - 1
                         
                         var unreadCount = unreadCountData.value as? Int
                         if unreadCount == nil {

        super.viewWillAppear(animated)
        registerMsgAddedObserver()
        registerMsgRemovedObserver()
    }
    
    func registerMsgAddedObserver() {

        
        
        
        //        channelRef?.observeSingleEventOfType(.Value, withBlock: { snapshot in
        //            print(snapshot.value["totalCount"] )
        //            print(snapshot.value["unreadCount"])
        //        })
        
    }
    
