You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then will get a error msg: SDK => [OperationID:77de3158-7172-4013-a297-19bc01fd5d5f] (invoked by js) run deleteMessage with error {"errCode":10005,"errMsg":"error *errors.withStack not implement CodeError: ==> github.com/openimsdk/openim-sdk-core/v3/pkg/utils.JsonStringToStruct()@79: json Unmarshal failed: json: Unmarshal(non-pointer []*model_struct.LocalChatLog)","operationID":"77de3158-7172-4013-a297-19bc01fd5d5f"}
Screenshots Link
The text was updated successfully, but these errors were encountered:
I fixed this one.
in the openim-sdk-core. GetLatestActiveMessage methods call "utils.JsonStringToStruct(v, result)" should change to "utils.JsonStringToStruct(v, &result)". missing &
func (i *LocalChatLogs) GetLatestActiveMessage(ctx context.Context, conversationID string, isReverse bool) (result []*model_struct.LocalChatLog, err error) {
msg, err := exec.Exec(conversationID, isReverse)
if err != nil {
return nil, err
} else {
if v, ok := msg.(string); ok {
err := utils.JsonStringToStruct(v, result) // error line
if err != nil {
return nil, err
}
OpenIM Server Version
3.8.0
Operating System and CPU Architecture
macOS (ARM)
Deployment Method
Source Code Deployment
Bug Description and Steps to Reproduce
Screenshots Link
The text was updated successfully, but these errors were encountered: