mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-13 04:25:47 +02:00
Added sent date fallback
This commit is contained in:
@@ -1309,8 +1309,10 @@ public class MessageHelper {
|
||||
Long getSent() throws MessagingException {
|
||||
ensureMessage(false);
|
||||
|
||||
Date date = imessage.getSentDate();
|
||||
return (date == null ? null : date.getTime());
|
||||
Date sent = imessage.getSentDate();
|
||||
if (sent == null)
|
||||
sent = imessage.getReceivedDate();
|
||||
return (sent == null ? new Date() : sent).getTime();
|
||||
}
|
||||
|
||||
String getHeaders() throws MessagingException {
|
||||
|
||||
Reference in New Issue
Block a user