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]; contact = [_contacts objectForKey: bareJID];
if ([[rosterItem subscription] isEqual: @"remove"]) { if ([[rosterItem subscription] isEqual: @"remove"]) {
[_contacts removeObjectForKey: bareJID];
if (contact != nil) if (contact != nil)
[_delegates broadcastSelector: @selector(contactManager: [_delegates broadcastSelector: @selector(contactManager:
didRemoveContact:) didRemoveContact:)
withObject: self withObject: self
withObject: contact]; withObject: contact];
[_contacts removeObjectForKey: bareJID];
return; return;
} }