From db517eb1f4cd673cc9106a9e2460354ceccf02fc Mon Sep 17 00:00:00 2001 From: Samuel Hawksby-Robinson Date: Mon, 20 Jul 2020 22:44:22 +0100 Subject: [PATCH] Removed lines I've added --- protocol/message.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/protocol/message.go b/protocol/message.go index 6f68a57a2..fead6fe55 100644 --- a/protocol/message.go +++ b/protocol/message.go @@ -122,7 +122,6 @@ func (m *Message) MarshalJSON() ([]byte, error) { Hash string `json:"hash"` Pack int32 `json:"pack"` } - item := struct { ID string `json:"id"` WhisperTimestamp uint64 `json:"whisperTimestamp"` @@ -176,7 +175,6 @@ func (m *Message) MarshalJSON() ([]byte, error) { MessageType: m.MessageType, CommandParameters: m.CommandParameters, } - if sticker := m.GetSticker(); sticker != nil { item.Sticker = &StickerAlias{ Pack: sticker.Pack, @@ -207,7 +205,6 @@ func (m *Message) UnmarshalJSON(data []byte) error { if err := json.Unmarshal(data, &aux); err != nil { return err } - if aux.ContentType == protobuf.ChatMessage_STICKER { m.Payload = &protobuf.ChatMessage_Sticker{Sticker: aux.Sticker} }