implement uniform sorting on all views

This commit is contained in:
marlon-erler
2024-07-19 15:13:43 +02:00
parent 0704ca9e5b
commit 6990b5edc5
13 changed files with 157 additions and 102 deletions
+13
View File
@@ -49,6 +49,19 @@ export interface MessageObjectContent {
time?: string;
}
export interface MessageObjectWithIndex extends MessageObject {
index: React.State<number>;
}
export class MessageObjectWithIndex implements MessageObjectWithIndex {
constructor(messageObject: MessageObject, index: number = 0) {
this.id = messageObject.id;
this.title = messageObject.title;
this.contentVersions = messageObject.contentVersions;
this.index = new React.State(index);
}
}
// chat
export class Chat {
id: string;