pEpObjCAdapter/PEPSession.m
changeset 196 d660aae03056
parent 187 1f630a05e444
child 202 9887f3326221
     1.1 --- a/pEpObjCAdapter/PEPSession.m	Mon May 22 13:40:33 2017 +0200
     1.2 +++ b/pEpObjCAdapter/PEPSession.m	Tue Jun 06 15:32:01 2017 +0200
     1.3 @@ -118,6 +118,20 @@
     1.4      return color;
     1.5  }
     1.6  
     1.7 +- (PEP_rating)reEvaluateMessageRating:(nonnull NSDictionary<NSString *, id> *)src
     1.8 +{
     1.9 +    message * _src = PEP_messageDictToStruct(src);
    1.10 +    PEP_rating color = PEP_rating_undefined;
    1.11 +    
    1.12 +    @synchronized (self) {
    1.13 +        re_evaluate_message_rating(_session, _src, NULL, PEP_rating_undefined, &color);
    1.14 +    }
    1.15 +    
    1.16 +    free_message(_src);
    1.17 +    
    1.18 +    return color;
    1.19 +}
    1.20 +
    1.21  - (void)removeEmptyArrayKey:(NSString *)key inDict:(NSMutableDictionary<NSString *, id> *)dict
    1.22  {
    1.23      if ([[dict objectForKey:key] count] == 0) {