diff --git a/internal/rpc/conversation/conversaion.go b/internal/rpc/conversation/conversaion.go index f608bce0f1..fd57713bd9 100644 --- a/internal/rpc/conversation/conversaion.go +++ b/internal/rpc/conversation/conversaion.go @@ -244,7 +244,11 @@ func (c *conversationServer) SetConversations(ctx context.Context, req *pbconver if err != nil { return nil, err } - conversationMap[userID] = conversationList[0] + if len(conversationList) != 0 { + conversationMap[userID] = conversationList[0] + } else { + conversationMap[userID] = &dbModel.Conversation{} + } } var conversation dbModel.Conversation