From aefa5d7b74c186c38284b3bc300b8bcc1f66d846 Mon Sep 17 00:00:00 2001 From: Aygul Salahli Date: Mon, 21 Oct 2019 13:04:46 +0300 Subject: [PATCH] When a property is repeated with multiple values take the last one --- source/modest/finder/thread.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/modest/finder/thread.c b/source/modest/finder/thread.c index a6f5d86..883e5f2 100644 --- a/source/modest/finder/thread.c +++ b/source/modest/finder/thread.c @@ -334,8 +334,11 @@ bool modest_finder_thread_spec_is_up(modest_style_raw_specificity_t* spec_f, mod if(spec_f->c > spec_t->c) return true; + else if(spec_f->c < spec_t->c) + return false; - return false; + /* when a property is repeated with multiple values take the last one*/ + return true; } void modest_finder_thread_declaratin_append(modest_finder_thread_found_context_t* found_context, bool is_low_priority,