Commit 498863d3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix Bug 283108 - Messages without In-Reply-To: header are not properly sorted in thread view

The first reference is the first message of thread and second is the parent of message.
FIXED-IN: 4.8
BUG: 283108
(cherry picked from commit 15cb5cb3)
parent 99c68539
......@@ -289,7 +289,7 @@ void StorageModel::fillMessageItemThreadingData( MessageList::Core::MessageItem
}
case PerfectThreadingPlusReferences:
if ( !mail->references()->identifiers().isEmpty() ) {
mi->setReferencesIdMD5( md5Encode( mail->references()->identifiers().first() ) );
mi->setReferencesIdMD5( md5Encode( mail->references()->identifiers().last() ) );
}
// fall through
case PerfectThreadingOnly:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment