XMPPContactManager: Remove contact from store after broadcasting the selector
This commit is contained in:
parent
c7c58748fd
commit
702a18636d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue