Set 'send time' on outgoing messages

This commit is contained in:
Christian Basler 2016-10-28 07:52:05 +02:00
parent e1173d0619
commit 7b14081c63

View File

@ -264,6 +264,9 @@ public class Plaintext implements Streamable {
}
public void setStatus(Status status) {
if (status != Status.RECEIVED && sent == null && status != Status.DRAFT) {
sent = UnixTime.now();
}
this.status = status;
}