From b3c6afe99b5d6cf97e0cf200bf59ed90d5ca488e Mon Sep 17 00:00:00 2001 From: Andrea Maria Piana Date: Tue, 28 Jul 2020 15:26:34 +0200 Subject: [PATCH] dont use a pointer --- protocol/messenger.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/messenger.go b/protocol/messenger.go index 15a4928dc..0a6a65cf4 100644 --- a/protocol/messenger.go +++ b/protocol/messenger.go @@ -3253,7 +3253,7 @@ func (m *Messenger) SendEmojiReaction(ctx context.Context, chatID, messageID str return nil, err } - _, err = m.dispatchMessage(ctx, &common.RawMessage{ + _, err = m.dispatchMessage(ctx, common.RawMessage{ LocalChatID: chatID, Payload: encodedMessage, MessageType: protobuf.ApplicationMetadataMessage_EMOJI_REACTION, @@ -3316,7 +3316,7 @@ func (m *Messenger) SendEmojiReactionRetraction(ctx context.Context, emojiReacti } // Send the marshalled EmojiReactionRetraction protobuf - _, err = m.dispatchMessage(ctx, &common.RawMessage{ + _, err = m.dispatchMessage(ctx, common.RawMessage{ LocalChatID: emojiR.GetChatId(), Payload: encodedMessage, MessageType: protobuf.ApplicationMetadataMessage_EMOJI_REACTION,