linting
This commit is contained in:
parent
29f25c5486
commit
a1a6e1c6c0
|
@ -272,11 +272,11 @@ func (p *MessageProcessor) EncodeMembershipUpdate(
|
||||||
|
|
||||||
if chatEntity != nil {
|
if chatEntity != nil {
|
||||||
chatEntityProtobuf := chatEntity.GetProtobuf()
|
chatEntityProtobuf := chatEntity.GetProtobuf()
|
||||||
switch chatEntityProtobuf.(type) {
|
switch chatEntityProtobuf := chatEntityProtobuf.(type) {
|
||||||
case *protobuf.ChatMessage:
|
case *protobuf.ChatMessage:
|
||||||
message.Message = chatEntityProtobuf.(*protobuf.ChatMessage)
|
message.Message = chatEntityProtobuf
|
||||||
case *protobuf.EmojiReaction:
|
case *protobuf.EmojiReaction:
|
||||||
message.EmojiReaction = chatEntityProtobuf.(*protobuf.EmojiReaction)
|
message.EmojiReaction = chatEntityProtobuf
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,8 +11,8 @@ import (
|
||||||
"unicode/utf8"
|
"unicode/utf8"
|
||||||
|
|
||||||
"github.com/golang/protobuf/proto"
|
"github.com/golang/protobuf/proto"
|
||||||
|
|
||||||
"github.com/status-im/markdown"
|
"github.com/status-im/markdown"
|
||||||
|
|
||||||
"github.com/status-im/status-go/protocol/protobuf"
|
"github.com/status-im/status-go/protocol/protobuf"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -505,6 +505,7 @@ func (db sqlitePersistence) EmojiReactionsByChatID(chatID string, currCursor str
|
||||||
// NOTE: We match against local_chat_id for security reasons.
|
// NOTE: We match against local_chat_id for security reasons.
|
||||||
// As a user could potentially send an emoji reaction for a one to
|
// As a user could potentially send an emoji reaction for a one to
|
||||||
// one/group chat that has no access to.
|
// one/group chat that has no access to.
|
||||||
|
// nolint: gosec
|
||||||
query := fmt.Sprintf(`
|
query := fmt.Sprintf(`
|
||||||
SELECT
|
SELECT
|
||||||
e.clock_value,
|
e.clock_value,
|
||||||
|
|
|
@ -3243,7 +3243,7 @@ func (m *Messenger) SendEmojiReaction(ctx context.Context, chatID, messageID str
|
||||||
Clock: clock,
|
Clock: clock,
|
||||||
MessageId: messageID,
|
MessageId: messageID,
|
||||||
ChatId: chatID,
|
ChatId: chatID,
|
||||||
Type: protobuf.EmojiReaction_Type(emojiID),
|
Type: emojiID,
|
||||||
},
|
},
|
||||||
LocalChatID: chatID,
|
LocalChatID: chatID,
|
||||||
From: types.EncodeHex(crypto.FromECDSAPub(&m.identity.PublicKey)),
|
From: types.EncodeHex(crypto.FromECDSAPub(&m.identity.PublicKey)),
|
||||||
|
|
|
@ -90,7 +90,7 @@ func (s *MessengerEmojiSuite) TestSendEmoji() {
|
||||||
|
|
||||||
bob := s.newMessengerWithKey(s.shh, key)
|
bob := s.newMessengerWithKey(s.shh, key)
|
||||||
|
|
||||||
chatID := "status"
|
chatID := statusChatID
|
||||||
|
|
||||||
chat := CreatePublicChat(chatID, alice.transport)
|
chat := CreatePublicChat(chatID, alice.transport)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue