dont use a pointer

This commit is contained in:
Andrea Maria Piana 2020-07-28 15:26:34 +02:00
parent eb087a00a4
commit b3c6afe99b
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 2 additions and 2 deletions

View File

@ -3253,7 +3253,7 @@ func (m *Messenger) SendEmojiReaction(ctx context.Context, chatID, messageID str
return nil, err return nil, err
} }
_, err = m.dispatchMessage(ctx, &common.RawMessage{ _, err = m.dispatchMessage(ctx, common.RawMessage{
LocalChatID: chatID, LocalChatID: chatID,
Payload: encodedMessage, Payload: encodedMessage,
MessageType: protobuf.ApplicationMetadataMessage_EMOJI_REACTION, MessageType: protobuf.ApplicationMetadataMessage_EMOJI_REACTION,
@ -3316,7 +3316,7 @@ func (m *Messenger) SendEmojiReactionRetraction(ctx context.Context, emojiReacti
} }
// Send the marshalled EmojiReactionRetraction protobuf // Send the marshalled EmojiReactionRetraction protobuf
_, err = m.dispatchMessage(ctx, &common.RawMessage{ _, err = m.dispatchMessage(ctx, common.RawMessage{
LocalChatID: emojiR.GetChatId(), LocalChatID: emojiR.GetChatId(),
Payload: encodedMessage, Payload: encodedMessage,
MessageType: protobuf.ApplicationMetadataMessage_EMOJI_REACTION, MessageType: protobuf.ApplicationMetadataMessage_EMOJI_REACTION,