Fix sticker pack with id = 0 (#1749)

This commit is contained in:
flexsurfer 2019-12-20 10:35:07 +01:00 committed by Adam Babik
parent 90349b28c7
commit 9a656fe151
1 changed files with 0 additions and 4 deletions

View File

@ -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")
}