Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var chatList = NSMutableArray()
- var chatListBare = NSMutableArray()
- public class func removeUserAtIndexPath(indexPath: NSIndexPath) {
- let user = OneChats.getChatsList().objectAtIndex(indexPath.row) as! XMPPUserCoreDataStorageObject
- sharedInstance.removeMyUserActivityFromCoreDataStorageWith(user: user)
- sharedInstance.removeUserActivityFromCoreDataStorage(user: user)
- removeUserFromChatList(user: user)
- }
- public class func removeUserFromChatList(user user: XMPPUserCoreDataStorageObject) {
- if sharedInstance.chatList.containsObject(user) {
- sharedInstance.chatList.removeObjectIdenticalTo(user)
- sharedInstance.chatListBare.removeObjectIdenticalTo(user.jidStr)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement