This commit is contained in:
parent
6cd3ff1b64
commit
aa623ff1c4
@ -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{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user