Skip to content

Commit 91e8d26

Browse files
authored
fix(conversation): allow set max_seq to 0 (#201)
1 parent b2a4ef6 commit 91e8d26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conversation/conversation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func (x *SetConversationMaxSeqReq) Check() error {
122122
if x.OwnerUserID == nil {
123123
return errors.New("ownerUserID is empty")
124124
}
125-
if x.MaxSeq <= 0 {
125+
if x.MaxSeq < 0 {
126126
return errors.New("maxSeq is invalid")
127127
}
128128
return nil

0 commit comments

Comments
 (0)