From 9a656fe151a608a584a57f9c5f413ab7d0e3f30f Mon Sep 17 00:00:00 2001 From: flexsurfer Date: Fri, 20 Dec 2019 10:35:07 +0100 Subject: [PATCH] Fix sticker pack with id = 0 (#1749) --- protocol/message_validator.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/protocol/message_validator.go b/protocol/message_validator.go index 7c1bd5623..845ef0810 100644 --- a/protocol/message_validator.go +++ b/protocol/message_validator.go @@ -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") }