Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (instancetype)initWithMRMessage:(MRMessage *)message pid:(NSString *)pid
- {
- // super init; etc
- _pid = pid;
- MRParameterAssertOrReturnNil(_pid);
- auto profilePID = message.conversation.profilePID;
- if (_pid)
- {
- _uid = [_pid substringFromIndex:profilePID.length + 1];
- }
- _participantUID = message.participantUid;
- if (!_participantUID)
- {
- if (_outgoing)
- {
- NSString *profileUID = nil;
- [OBJCIM_Profile parsePidToComponents:_pid profileUID:&profileUID profilePID:nullptr service:nullptr contactUID:nil];
- _participantUID = profileUID;
- }
- else
- {
- _participantUID = _uid;
- }
- }
- // ....
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement