Skip to content

Commit

Permalink
fix: check update list
Browse files Browse the repository at this point in the history
  • Loading branch information
icey-yu committed Aug 27, 2024
1 parent 7ced30b commit 1c3857a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/rpc/conversation/conversaion.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func (c *conversationServer) SetConversations(ctx context.Context, req *pbconver
req.Conversation.IsPrivateChat.Value, req.Conversation.ConversationID)
}
} else {
if len(m) != 0 {
if len(m) != 0 && len(needUpdateUsersList) != 0 {
if err := c.conversationDatabase.SetUsersConversationFieldTx(ctx, needUpdateUsersList, &conversation, m); err != nil {
return nil, err
}
Expand Down

0 comments on commit 1c3857a

Please sign in to comment.