mirror of
https://github.com/coaidev/coai.git
synced 2025-05-21 05:50:14 +09:00
14 lines
247 B
Go
14 lines
247 B
Go
package conversation
|
|
|
|
import (
|
|
"chat/globals"
|
|
"chat/utils"
|
|
)
|
|
|
|
func (c *Conversation) LoadMask(data string) {
|
|
message := utils.UnmarshalForm[[]globals.Message](data)
|
|
if message != nil && len(*message) > 0 {
|
|
c.InsertMessages(*message, 0)
|
|
}
|
|
}
|