Sort left pane via receivedAt/receivedAtMs, even via edits

This commit is contained in:
Scott Nonnenberg 2024-03-25 12:21:14 -07:00 committed by GitHub
parent a39e46db5c
commit 6bc6cc64c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 55 additions and 11 deletions

9
ts/model-types.d.ts vendored
View file

@ -116,7 +116,8 @@ export type MessageReactionType = {
};
// Note: when adding to the set of things that can change via edits, sendNormalMessage.ts
// needs more usage of get/setPropForTimestamp.
// needs more usage of get/setPropForTimestamp. Also, these fields must match the fields
// in MessageAttributesType.
export type EditHistoryType = {
attachments?: Array<AttachmentType>;
body?: string;
@ -126,6 +127,8 @@ export type EditHistoryType = {
quote?: QuotedMessageType;
sendStateByConversationId?: SendStateByConversationId;
timestamp: number;
received_at: number;
received_at_ms?: number;
};
export type MessageAttributesType = {
@ -152,6 +155,8 @@ export type MessageAttributesType = {
isViewOnce?: boolean;
editHistory?: Array<EditHistoryType>;
editMessageTimestamp?: number;
editMessageReceivedAt?: number;
editMessageReceivedAtMs?: number;
key_changed?: string;
local?: boolean;
logger?: unknown;
@ -334,6 +339,8 @@ export type ConversationAttributesType = {
lastMessagePrefix?: string;
lastMessageAuthor?: string | null;
lastMessageStatus?: LastMessageStatus | null;
lastMessageReceivedAt?: number;
lastMessageReceivedAtMs?: number;
markedUnread?: boolean;
messageCount?: number;
messageCountBeforeMessageRequests?: number | null;