Fix edit message date header showing wrong date.

This commit is contained in:
Clark
2023-06-21 12:44:22 -04:00
committed by GitHub
parent d6758fc264
commit 59b2cc5f79
3 changed files with 13 additions and 4 deletions

View File

@@ -741,6 +741,17 @@ public abstract class MessageRecord extends DisplayRecord {
return originalMessageId;
}
/**
* Get the timestamp of a message, shown in the conversation. This is used
* for example when showing the conversation date separators.
*/
public long getConversationTimestamp() {
if (isEditMessage()) {
return getDateReceived();
}
return getDateSent();
}
public int getRevisionNumber() {
return revisionNumber;
}