mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-14 14:05:59 +08:00
fix: fix the GetSortedConversationList (#1725)
* fix: improve the GetSortedConversation api * fix: fix the go.mod * fix: fix the valiable name
This commit is contained in:
@@ -539,6 +539,11 @@ func (s *userServer) AddNotificationAccount(ctx context.Context, req *pbuser.Add
|
||||
if req.UserID == "" {
|
||||
return nil, errs.ErrInternalServer.Wrap("gen user id failed")
|
||||
}
|
||||
} else {
|
||||
_, err := s.UserDatabase.FindWithError(ctx, []string{req.UserID})
|
||||
if err == nil {
|
||||
return nil, errs.ErrArgs.Wrap("userID is used")
|
||||
}
|
||||
}
|
||||
|
||||
user := &tablerelation.UserModel{
|
||||
|
||||
Reference in New Issue
Block a user