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, если схема позволяет)
emptyMessage := &domain.Message{
ChatID: chat.ID,
SenderID: currentUserID,
Content: "Чат создан",
Status: "system",
CreatedAt: time.Now(),
ChatID: chat.ID,
SenderID: currentUserID,
ReceiverID: otherUser.ID,
Content: "Чат создан",
Status: "system",
CreatedAt: time.Now(),
}
return &ChatSession{