Skip to content

Commit

Permalink
Fix sticker pack with id = 0 (#1749)
Browse files Browse the repository at this point in the history
  • Loading branch information
flexsurfer authored and Adam Babik committed Dec 20, 2019
1 parent 90349b2 commit 9a656fe
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions protocol/message_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ func ValidateReceivedChatMessage(message *protobuf.ChatMessage) error {
if sticker == nil {
return errors.New("No sticker content")
}

if sticker.Pack == 0 {
return errors.New("Sticker pack not set")
}
if len(sticker.Hash) == 0 {
return errors.New("Sticker hash not set")
}
Expand Down

0 comments on commit 9a656fe

Please # to comment.