Skip to content

Commit ea2199d

Browse files
committed
fix: optimize conversation message handling and improve message synchronization
1 parent 934d029 commit ea2199d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/converter/conversation.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ func LocalChatLogToMsgStruct(local *model_struct.LocalChatLog) *sdk_struct.MsgSt
115115
Status: local.Status,
116116
Ex: local.Ex,
117117
LocalEx: local.LocalEx,
118+
AttachedInfo: local.AttachedInfo,
118119
}
119120

120121
if err := PopulateMsgStructByContentType(msg); err != nil {
@@ -196,8 +197,8 @@ func PopulateMsgStructByContentType(msg *sdk_struct.MsgStruct) (err error) {
196197
if err := utils.JsonStringToStruct(msg.AttachedInfo, &attachedInfo); err != nil {
197198
log.ZWarn(context.Background(), "JsonStringToStruct error", err, "localMessage.AttachedInfo", msg.AttachedInfo)
198199
}
199-
msg.AttachedInfoElem = &attachedInfo
200200
}
201+
msg.AttachedInfoElem = &attachedInfo
201202
msg.Content = ""
202203
return errs.Wrap(err)
203204
}

0 commit comments

Comments
 (0)