Browse Source

IOS-2628 Deal with "no attachment"

IOS-2651
Dirk Zimmermann 1 year ago
parent
commit
54b85076ef
2 changed files with 10 additions and 1 deletions
  1. +9
    -0
      pEpObjCAdapter/Extensions/NSArray+Engine.m
  2. +1
    -1
      pEpObjCAdapter/Extensions/PEPMessage+Engine.m

+ 9
- 0
pEpObjCAdapter/Extensions/NSArray+Engine.m View File

@ -123,7 +123,16 @@
- (bloblist_t * _Nullable)toBloblist
{
if (self.count == 0) {
return NULL;
}
bloblist_t *_bl = new_bloblist(NULL, 0, NULL, NULL);
if (!_bl) {
return NULL;
}
bloblist_t *bl =_bl;
// free() might be the default, but let's be explicit


+ 1
- 1
pEpObjCAdapter/Extensions/PEPMessage+Engine.m View File

@ -91,7 +91,7 @@
precomposedStringWithCanonicalMapping]
UTF8String], 0);
if (self.attachments && self.attachments.count > 0) {
if (self.attachments) {
msg->attachments = [self.attachments toBloblist];
}


Loading…
Cancel
Save