Skip to content

Commit

Permalink
fix: deleting the last message in a conversation will prompt failure (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
qmarliu authored and OpenIM-Robot committed Nov 10, 2024
1 parent 174880b commit 42bc045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wasm/indexdb/chat_log_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (i *LocalChatLogs) GetLatestActiveMessage(ctx context.Context, conversation
return nil, err
} else {
if v, ok := msg.(string); ok {
err := utils.JsonStringToStruct(v, result)
err := utils.JsonStringToStruct(v, &result)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 42bc045

Please sign in to comment.