XMPPContactManager: Remove contact from store after broadcasting the selector

This commit is contained in:
Florian Zeitz 2013-06-09 20:21:20 +02:00
parent c7c58748fd
commit 702a18636d

View file

@ -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;
}