Permalink
Browse files

do not automatically ask for contact vCard

  • Loading branch information...
1 parent c3d8d92 commit 46cdfbc509d924846fd751700890b406b0a71772 @primalmotion primalmotion committed Jul 6, 2012
Showing with 8 additions and 3 deletions.
  1. +8 −3 TNStropheContact.j
View
@@ -146,8 +146,8 @@ var TNStropheContactImageOffline,
if (aGroup)
[_groups addObject:aGroup];
- if (!_vCard && !_askingVCard)
- [self getVCard];
+ // if (!_vCard && !_askingVCard)
+ // [self getVCard];
}
return self;
@@ -276,8 +276,13 @@ var TNStropheContactImageOffline,
else
_XMPPStatus = "Online";
- if ([aStanza firstChildWithName:@"x"] && [[aStanza firstChildWithName:@"x"] valueForAttribute:@"xmlns"] == @"vcard-temp:x:update")
+ if ([aStanza firstChildWithName:@"x"]
+ && [[aStanza firstChildWithName:@"x"] valueForAttribute:@"xmlns"] == @"vcard-temp:x:update"
+ && ![aStanza firstChildWithName:@"delay"])
+ {
[self getVCard];
+ }
+
break;
}

0 comments on commit 46cdfbc

Please sign in to comment.