Skip to content

Commit befc1cb

Browse files
authored
Merge pull request #70 from aygulsalahli/fix-repeated-property
When a property is repeated with multiple values take the last one.
2 parents c6b430f + aefa5d7 commit befc1cb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/modest/finder/thread.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,11 @@ bool modest_finder_thread_spec_is_up(modest_style_raw_specificity_t* spec_f, mod
334334

335335
if(spec_f->c > spec_t->c)
336336
return true;
337+
else if(spec_f->c < spec_t->c)
338+
return false;
337339

338-
return false;
340+
/* when a property is repeated with multiple values take the last one*/
341+
return true;
339342
}
340343

341344
void modest_finder_thread_declaratin_append(modest_finder_thread_found_context_t* found_context, bool is_low_priority,

0 commit comments

Comments
 (0)