big update: added reactions, groups, media share
This commit is contained in:
@@ -42,9 +42,18 @@ type Session struct {
|
||||
type Conversation struct {
|
||||
ID int64
|
||||
Type string
|
||||
Name string
|
||||
Avatar string
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
// MemberInfo describes a conversation participant together with their profile.
|
||||
type MemberInfo struct {
|
||||
User User
|
||||
Role string
|
||||
JoinedAt time.Time
|
||||
}
|
||||
|
||||
// ConversationSummary provides a conversation with its last message and unread count.
|
||||
type ConversationSummary struct {
|
||||
Conversation
|
||||
@@ -58,6 +67,7 @@ type Message struct {
|
||||
ConversationID int64
|
||||
SenderID int64
|
||||
Body string
|
||||
MediaID *int64
|
||||
CreatedAt time.Time
|
||||
EditedAt *time.Time
|
||||
DeletedAt *time.Time
|
||||
|
||||
Reference in New Issue
Block a user