diff --git a/Classes/Contact.m b/Classes/Contact.m index d01d1b759..2161be31a 100644 --- a/Classes/Contact.m +++ b/Classes/Contact.m @@ -208,6 +208,7 @@ } NSString *normSip = [sip hasPrefix:@" "] ? [sip substringFromIndex:1] : sip; + normSip = [normSip hasPrefix:@"sip:"] ? [normSip substringFromIndex:4] : normSip; CNInstantMessageAddress *cNSipMsgAddr = [[CNInstantMessageAddress alloc] initWithUsername:normSip service:@"SIP"]; CNLabeledValue *sipAddress = [CNLabeledValue labeledValueWithLabel:NULL value:cNSipMsgAddr]; NSMutableArray *> *tmpSipAddresses = [_person.instantMessageAddresses mutableCopy];