Add message reply UI.

This commit is contained in:
Paul
2021-06-23 18:26:41 +01:00
parent 0ce77951cb
commit 50bd6addb4
9 changed files with 234 additions and 37 deletions

View File

@@ -5,10 +5,20 @@ export enum QueueStatus {
ERRORED = "errored",
}
export interface Reply {
id: string,
mention: boolean
}
export type QueuedMessageData = Omit<MessageObject, 'content' | 'replies'> & {
content: string;
replies: Reply[];
}
export interface QueuedMessage {
id: string;
channel: string;
data: MessageObject;
data: QueuedMessageData;
status: QueueStatus;
error?: string;
}
@@ -19,7 +29,7 @@ export type QueueAction =
type: "QUEUE_ADD";
nonce: string;
channel: string;
message: MessageObject;
message: QueuedMessageData;
}
| {
type: "QUEUE_FAIL";