mirror of
https://github.com/status-im/status-go.git
synced 2025-02-22 19:58:29 +00:00
Fix sticker pack with id = 0 (#1749)
This commit is contained in:
parent
90349b28c7
commit
9a656fe151
@ -39,10 +39,6 @@ func ValidateReceivedChatMessage(message *protobuf.ChatMessage) error {
|
|||||||
if sticker == nil {
|
if sticker == nil {
|
||||||
return errors.New("No sticker content")
|
return errors.New("No sticker content")
|
||||||
}
|
}
|
||||||
|
|
||||||
if sticker.Pack == 0 {
|
|
||||||
return errors.New("Sticker pack not set")
|
|
||||||
}
|
|
||||||
if len(sticker.Hash) == 0 {
|
if len(sticker.Hash) == 0 {
|
||||||
return errors.New("Sticker hash not set")
|
return errors.New("Sticker hash not set")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user