pEpObjCAdapter/PEPSync.m
branchIOSAD-103
changeset 688 1b3d9f1481df
parent 686 fec1eae409cd
child 689 e14aa984e320
     1.1 --- a/pEpObjCAdapter/PEPSync.m	Fri Oct 05 12:09:01 2018 +0200
     1.2 +++ b/pEpObjCAdapter/PEPSync.m	Fri Oct 05 12:09:01 2018 +0200
     1.3 @@ -9,9 +9,17 @@
     1.4  #import "PEPSync.h"
     1.5  
     1.6  #import "PEPSyncSendMessageDelegate.h"
     1.7 +#import "PEPMessageUtil.h"
     1.8 +#import "PEPMessage.h"
     1.9  
    1.10  PEP_STATUS messageToSendObjc(struct _message *msg)
    1.11  {
    1.12 +    PEPSyncSendMessageDelegate *delegate = [PEPSync syncSendMessageDelegate];
    1.13 +    if (delegate) {
    1.14 +        PEPMessage *theMessage = pEpMessageFromStruct(msg);
    1.15 +        return [delegate sendMessage:theMessage];
    1.16 +    }
    1.17 +
    1.18      return PEP_STATUS_OK;
    1.19  }
    1.20