mirror of https://github.com/M66B/FairEmail.git
Fallback to sent time if no received time
This commit is contained in:
parent
d593c230ce
commit
041e293ac1
|
@ -639,6 +639,8 @@ public class MessageHelper {
|
|||
|
||||
long getReceived() throws MessagingException {
|
||||
Date received = imessage.getReceivedDate();
|
||||
if (received == null)
|
||||
received = imessage.getSentDate();
|
||||
return (received == null ? new Date() : received).getTime();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue