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
1 changed files with 1 additions and 1 deletions

View File

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