Permalink
Browse files

When adding a contact, initially create with no groups

  • Loading branch information...
1 parent baf5efc commit 5caec9f98cc543dc06e97ccf0659ad0aeb308810 @benlangfeld committed Jan 16, 2011
Showing with 5 additions and 2 deletions.
  1. +4 −1 TNStropheContact.j
  2. +1 −1 TNStropheRoster.j
View
@@ -108,7 +108,10 @@
_resources = [CPArray array];
_JID = aJID;
- _groupNames = [CPArray arrayWithObject:aGroupName];
+ _groupNames = [CPArray array];
+
+ if (aGroupName)
+ [_groupNames addObject:aGroupName];
if (!_vCard && !_askingVCard)
[self getVCard];
View
@@ -371,7 +371,7 @@
return;
}
- var contact = [TNStropheContact contactWithConnection:_connection JID:theJID groupName:groupName],
+ var contact = [TNStropheContact contactWithConnection:_connection JID:theJID groupName:nil],
nickname = [aRosterItem valueForAttribute:@"name"] || [theJID node],
groupNodes = [aRosterItem childrenWithName:@"group"],
groupNames = [CPArray array],

0 comments on commit 5caec9f

Please sign in to comment.