 
             dispatch_async(dispatch_get_main_queue()) { [weak self] in
                 if let strongSelf = self {
-                    let _ = try? strongSelf.realm.write {
-                        group.includeMe = meIsMember
+                    if !group.invalidated {
+                        let _ = try? strongSelf.realm.write {
+                            group.includeMe = meIsMember
+                        }
                     }
                 }
             }

            }

            delay(3) { [weak self] in

                guard !group.includeMe else {
                    return


                        dispatch_async(dispatch_get_main_queue()) { [weak self] in
                            if let strongSelf = self {
                                if !group.invalidated {
                                    let _ = try? strongSelf.realm.write {
                                        group.includeMe = true
                                        strongSelf.moreViewManager.updateForGroupAffair()
                                    }
                                }
                            }
                        }
