IOS-2325 Decorate re_evaluate_message_rating IOS-2325
authorDirk Zimmermann <dz@pep.security>
Wed, 15 Jul 2020 12:50:03 +0200
branchIOS-2325
changeset 168757551cd5d03f
parent 1686 0675495157e8
child 1688 91cd9269bc63
IOS-2325 Decorate re_evaluate_message_rating
pEpObjCAdapter/PEPInternalSession.m
     1.1 --- a/pEpObjCAdapter/PEPInternalSession.m	Wed Jul 15 10:15:21 2020 +0200
     1.2 +++ b/pEpObjCAdapter/PEPInternalSession.m	Wed Jul 15 12:50:03 2020 +0200
     1.3 @@ -200,11 +200,13 @@
     1.4          theKeys = PEP_arrayToStringlist(xKeyList);
     1.5      }
     1.6  
     1.7 -    PEPStatus theStatus = (PEPStatus) re_evaluate_message_rating(_session,
     1.8 -                                                                 _src,
     1.9 -                                                                 theKeys,
    1.10 -                                                                 (PEP_rating) *rating,
    1.11 -                                                                 (PEP_rating *) rating);
    1.12 +    PEPStatus theStatus = (PEPStatus) [self runWithPasswords:^PEP_STATUS(PEP_SESSION session) {
    1.13 +        return re_evaluate_message_rating(session,
    1.14 +                                          _src,
    1.15 +                                          theKeys,
    1.16 +                                          (PEP_rating) *rating,
    1.17 +                                          (PEP_rating *) rating);
    1.18 +    }];
    1.19  
    1.20      free_message(_src);
    1.21      free_stringlist(theKeys);