Browse Source

APPLEMAIL-58 Add encrypt myself in xpc client.

APPLEMAIL-58
David Alarcon 1 year ago
parent
commit
6f73ca94d4
1 changed files with 9 additions and 2 deletions
  1. +9
    -2
      Subprojects/PEPObjCAdapterXPCService/PEPObjCAdapterXPCApiClient/XPCService/PEPObjCAdapterXPCApiClientService.m

+ 9
- 2
Subprojects/PEPObjCAdapterXPCService/PEPObjCAdapterXPCApiClient/XPCService/PEPObjCAdapterXPCApiClientService.m View File

@ -119,8 +119,15 @@ successCallback:(nonnull void (^)(PEPIdentity * _Nonnull))successCallback {
successCallback:(void (^)(PEPMessage *srcMessage,
PEPMessage *destMessage))successCallback {
[self.conn]
[[self.connection remoteObjectProxyWithErrorHandler:^(NSError * _Nonnull error) {
NSLog(@"[PEP4APPLEMAIL] Error: %@", error);
// Nothing to do
}] encryptMessage:message forSelf:ownIdentity extraKeys:extraKeys
resultBlock:^(PEPObjCAdapterXpcApiResult * _Nonnull result) {
PEPMessage *srcMessage = result.result[0];
PEPMessage *destMessage = result.result[1];
successCallback(srcMessage, destMessage);
}];
}


Loading…
Cancel
Save