From 702a18636df3112f282694679dccc4c646a1e3d1 Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Sun, 9 Jun 2013 20:21:20 +0200 Subject: [PATCH] XMPPContactManager: Remove contact from store after broadcasting the selector --- src/XMPPContactManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XMPPContactManager.m b/src/XMPPContactManager.m index f80bb97..b87b084 100644 --- a/src/XMPPContactManager.m +++ b/src/XMPPContactManager.m @@ -115,12 +115,12 @@ contact = [_contacts objectForKey: bareJID]; if ([[rosterItem subscription] isEqual: @"remove"]) { - [_contacts removeObjectForKey: bareJID]; if (contact != nil) [_delegates broadcastSelector: @selector(contactManager: didRemoveContact:) withObject: self withObject: contact]; + [_contacts removeObjectForKey: bareJID]; return; }