Returning kPepRawMessage when it exists
authorDirk Zimmermann <dirk@pep-project.org>
Fri, 29 Jul 2016 14:42:08 +0200
changeset 1386adb106948b6
parent 137 b676bab371f0
child 139 4cfa4a534667
Returning kPepRawMessage when it exists
pEpiOSAdapter/PEPMessage.m
     1.1 --- a/pEpiOSAdapter/PEPMessage.m	Fri Jul 29 13:12:39 2016 +0200
     1.2 +++ b/pEpiOSAdapter/PEPMessage.m	Fri Jul 29 14:42:08 2016 +0200
     1.3 @@ -336,6 +336,11 @@
     1.4          if (msg->attachments && msg->attachments->value)
     1.5              [dict setObject: PEP_arrayFromBloblist(msg->attachments) forKey:@"attachments"];
     1.6  
     1.7 +        if (msg->rawmsg_size > 0 && *msg->rawmsg_ref) {
     1.8 +            NSData *data = [NSData dataWithBytes:msg->rawmsg_ref length:msg->rawmsg_size];
     1.9 +            dict[kPepRawMessage] = data;
    1.10 +        }
    1.11 +
    1.12          return dict;
    1.13      }
    1.14      return nil;