Sort by inbox position to match phone after link

This commit is contained in:
Josh Perez
2020-03-09 17:43:09 -07:00
committed by Scott Nonnenberg
parent 1f5cb9e8af
commit 4830213a12
25 changed files with 707 additions and 1029 deletions

View File

@@ -2,7 +2,10 @@ import { Attachment } from './Attachment';
import { ContactType } from './Contact';
import { IndexableBoolean, IndexablePresence } from './IndexedDB';
export type Message = UserMessage | VerifiedChangeMessage;
export type Message =
| UserMessage
| VerifiedChangeMessage
| MessageHistoryUnsyncedMessage;
export type UserMessage = IncomingMessage | OutgoingMessage;
export type IncomingMessage = Readonly<
@@ -65,6 +68,14 @@ export type VerifiedChangeMessage = Readonly<
ExpirationTimerUpdate
>;
export type MessageHistoryUnsyncedMessage = Readonly<
{
type: 'message-history-unsynced';
} & SharedMessageProperties &
MessageSchemaVersion5 &
ExpirationTimerUpdate
>;
type SharedMessageProperties = Readonly<{
conversationId: string;
sent_at: number;