v0.0.17.4
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
madipo2611 2025-08-11 21:35:26 +03:00
parent 6cd3ff1b64
commit aa623ff1c4

View File

@ -231,11 +231,12 @@ func (r *mutationResolver) CreateChat(ctx context.Context, userID int) (*ChatSes
// Создаем пустое последнее сообщение (или можно вернуть nil, если схема позволяет) // Создаем пустое последнее сообщение (или можно вернуть nil, если схема позволяет)
emptyMessage := &domain.Message{ emptyMessage := &domain.Message{
ChatID: chat.ID, ChatID: chat.ID,
SenderID: currentUserID, SenderID: currentUserID,
Content: "Чат создан", ReceiverID: otherUser.ID,
Status: "system", Content: "Чат создан",
CreatedAt: time.Now(), Status: "system",
CreatedAt: time.Now(),
} }
return &ChatSession{ return &ChatSession{