1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 15:11:03 +00:00

Fallback to sent time if no received time

This commit is contained in:
M66B 2019-07-15 12:41:31 +02:00
parent d593c230ce
commit 041e293ac1

View file

@ -639,6 +639,8 @@ public class MessageHelper {
long getReceived() throws MessagingException { long getReceived() throws MessagingException {
Date received = imessage.getReceivedDate(); Date received = imessage.getReceivedDate();
if (received == null)
received = imessage.getSentDate();
return (received == null ? new Date() : received).getTime(); return (received == null ? new Date() : received).getTime();
} }