Skip to content
Browse files

Add back something accidentally deleted

  • Loading branch information...
1 parent d163176 commit 38b467691065b59964d4e656f68dc545fa42b95b @benlangfeld committed Jan 15, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 TNStropheRoster.j
View
6 TNStropheRoster.j
@@ -354,7 +354,8 @@
var contact = [TNStropheContact contactWithConnection:_connection JID:theJID groupName:groupName],
nickname = [aRosterItem valueForAttribute:@"name"] || [theJID node],
groupNames = [aRosterItem childrenWithName:@"group"] || [CPArray array],
- queuedPresence = [self pendingPresenceForJID:theJID];
+ queuedPresence = [self pendingPresenceForJID:theJID],
+ subscription = [aRosterItem valueForAttribute:@"subscription"];
[_contacts addObject:contact];
@@ -375,9 +376,10 @@
[newContact _didReceivePresence:[queuedPresence objectAtIndex:j]];
[contact setNickname:nickname];
- [contact getMessages];
[contact setSubscription:subscription];
+ [contact getMessages];
+
return contact;
}

0 comments on commit 38b4676

Please sign in to comment.
Something went wrong with that request. Please try again.