Skip to content

Commit 12707e7

Browse files
committed
Add ParticipantSessions
1 parent ad9cd61 commit 12707e7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

conversation.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ import (
66
"time"
77
)
88

9+
type ParticipantSessionView struct {
10+
Type string `json:"type"`
11+
UserId string `json:"user_id"`
12+
SessionId string `json:"session_id"`
13+
PublicKey string `json:"public_key"`
14+
}
15+
916
type Participant struct {
1017
UserId string `json:"user_id"`
1118
Role string `json:"role"`
@@ -21,7 +28,8 @@ type Conversation struct {
2128
Announcement string `json:"announcement"`
2229
CreatedAt time.Time `json:"created_at"`
2330

24-
Participants []Participant `json:"participants"`
31+
Participants []Participant `json:"participants"`
32+
ParticipantSessions []ParticipantSessionView `json:"participant_sessions"`
2533
}
2634

2735
func CreateConversation(ctx context.Context, category, conversationId string, name, announcement string, participants []Participant, uid, sid, key string) (*Conversation, error) {

0 commit comments

Comments
 (0)