IOSAD-16: changes in new_bloblist and bloblist_add IOSAD-16
authorDirk Zimmermann <dirk@pep-project.org>
Wed, 07 Jun 2017 15:08:10 +0200
branchIOSAD-16
changeset 197237a5eea0661
parent 196 d660aae03056
child 539 2485275a536f
IOSAD-16: changes in new_bloblist and bloblist_add
pEpObjCAdapter/PEPMessage.m
     1.1 --- a/pEpObjCAdapter/PEPMessage.m	Tue Jun 06 15:32:01 2017 +0200
     1.2 +++ b/pEpObjCAdapter/PEPMessage.m	Wed Jun 07 15:08:10 2017 +0200
     1.3 @@ -155,7 +155,7 @@
     1.4          return nil;
     1.5      }
     1.6  
     1.7 -    bloblist_t *_bl = new_bloblist(NULL, 0, NULL, NULL);
     1.8 +    bloblist_t *_bl = new_bloblist(NULL, 0, NULL, NULL, NULL);
     1.9      bloblist_t *bl =_bl;
    1.10      for (NSMutableDictionary *blob in array) {
    1.11          NSData *data = blob[@"data"];
    1.12 @@ -167,7 +167,8 @@
    1.13          
    1.14          bl = bloblist_add(bl, buf, size,
    1.15                            [blob[@"mimeType"] UTF8String],
    1.16 -                          [[blob[@"filename"] precomposedStringWithCanonicalMapping] UTF8String]);
    1.17 +                          [[blob[@"filename"] precomposedStringWithCanonicalMapping] UTF8String],
    1.18 +                          [[blob[kPepContentID] precomposedStringWithCanonicalMapping] UTF8String]);
    1.19      }
    1.20      return _bl;
    1.21  }