Skip to content

Commit

Permalink
refactor: change conversation type name.
Browse files Browse the repository at this point in the history
  • Loading branch information
FGadvancer committed Apr 19, 2024
1 parent 47b8c07 commit 0262cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conversation/conversation.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (x *SetConversationsReq) Check() error {
if x.Conversation.ConversationType == constant.SingleChatType && x.Conversation.UserID == "" {
return errors.New("userID is empty")
}
if x.Conversation.ConversationType == constant.SuperGroupChatType && x.Conversation.GroupID == "" {
if x.Conversation.ConversationType == constant.ReadGroupChatType && x.Conversation.GroupID == "" {
return errors.New("groupID is empty")
}
return nil
Expand Down

0 comments on commit 0262cb5

Please sign in to comment.