Fix bug where generated messages have wrong guids
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"code.severnaya.net/kordophone-mock/v2/model"
|
||||
"code.severnaya.net/kordophone-mock/v2/server"
|
||||
"github.com/chzyer/readline"
|
||||
"github.com/google/uuid"
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
@@ -81,7 +82,7 @@ func (p *Prompt) receiveMessage(guid string, text string) {
|
||||
}
|
||||
|
||||
message := model.Message{
|
||||
Guid: guid,
|
||||
Guid: uuid.New().String(),
|
||||
Sender: &conversation.Participants[0],
|
||||
Text: text,
|
||||
Date: time.Now(),
|
||||
|
||||
Reference in New Issue
Block a user