mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
only store an internalDate if we actually get it from the server; If we
don't have an internaldate, use the sentdate for sorting comparisons.
This commit is contained in:
parent
52ff331771
commit
61b25c8760
@ -2508,6 +2508,11 @@ public class MessageList
|
||||
LocalMessage message = (LocalMessage) m;
|
||||
Date date = message.getSentDate();
|
||||
this.compareDate = message.getInternalDate();
|
||||
if (this.compareDate == null)
|
||||
{
|
||||
this.compareDate = message.getSentDate();
|
||||
}
|
||||
|
||||
this.folder = folder;
|
||||
|
||||
if (Utility.isDateToday(date))
|
||||
|
@ -1772,7 +1772,7 @@ public class LocalStore extends Store implements Serializable
|
||||
cv.put("reply_to_list", Address.pack(message.getReplyTo()));
|
||||
cv.put("attachment_count", attachments.size());
|
||||
cv.put("internal_date", message.getInternalDate() == null
|
||||
? System.currentTimeMillis() : message.getInternalDate().getTime());
|
||||
? null : message.getInternalDate().getTime());
|
||||
String messageId = message.getMessageId();
|
||||
if (messageId != null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user