show conversation time as last clear date when empty

This commit is contained in:
Daniel Gultsch 2017-03-07 11:46:12 +01:00
parent 3c951ce2cd
commit 254edc48f5

View file

@ -456,7 +456,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
if (this.messages.size() == 0) { if (this.messages.size() == 0) {
Message message = new Message(this, "", Message.ENCRYPTION_NONE); Message message = new Message(this, "", Message.ENCRYPTION_NONE);
message.setType(Message.TYPE_STATUS); message.setType(Message.TYPE_STATUS);
message.setTime(getCreated()); message.setTime(Math.max(getCreated(),getLastClearHistory()));
return message; return message;
} else { } else {
Message message = this.messages.get(this.messages.size() - 1); Message message = this.messages.get(this.messages.size() - 1);