conversations, unread count, autoscrolling to recent messages, cursor in text bar

This commit is contained in:
jackiettran
2025-11-09 22:16:26 -05:00
parent 7a5bff8f2b
commit 3442e880d8
5 changed files with 415 additions and 101 deletions

View File

@@ -48,6 +48,20 @@ export interface Message {
updatedAt: string;
}
export interface Conversation {
partnerId: string;
partner: User;
lastMessage: {
id: string;
content: string;
senderId: string;
createdAt: string;
isRead: boolean;
};
unreadCount: number;
lastMessageAt: string;
}
export interface Item {
id: string;
name: string;