show conversation time as last clear date when empty
This commit is contained in:
parent
3c951ce2cd
commit
254edc48f5
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue