                         (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
-                        
                         var unreadCount = unreadCountData.value as? Int
                         if unreadCount == nil {
                             unreadCount = 0

                weakSelf.chatMessages.removeAtIndex(index!)
                weakSelf.tableView.deleteRowsAtIndexPaths([NSIndexPath(forRow: index!, inSection: 0)], withRowAnimation: .Automatic)
            }
            })
    }
    
    func registerMsgChangedObserver() {

                    guard let messageRef = weakSelf.ref else {return}
                    weakSelf.updateReadMsgCount(forRefrence: messageRef.childByAppendingPath(id))
                }
            }
            }, withCancelBlock: { error in
                print(error.description)
        })
