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:
parent
d593c230ce
commit
041e293ac1
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue