mirror of
https://github.com/status-im/status-go.git
synced 2025-01-10 14:47:06 +00:00
d7772d3fc6
This commit fixes a couple of issues: 1) Emojis were sent to any member of the group chat, regardless of whether they joined 2) We don't want to wrap emojis, as there's no need to do so, only messages are to be wrapped
25 lines
505 B
Go
25 lines
505 B
Go
package common
|
|
|
|
import (
|
|
"crypto/ecdsa"
|
|
|
|
"github.com/golang/protobuf/proto"
|
|
|
|
"github.com/status-im/status-go/protocol/protobuf"
|
|
)
|
|
|
|
// ChatEntity is anything that is sendable in a chat.
|
|
// Currently it encompass a Message and EmojiReaction.
|
|
type ChatEntity interface {
|
|
proto.Message
|
|
|
|
GetChatId() string
|
|
GetMessageType() protobuf.MessageType
|
|
GetSigPubKey() *ecdsa.PublicKey
|
|
GetProtobuf() proto.Message
|
|
GetGrant() []byte
|
|
WrapGroupMessage() bool
|
|
|
|
SetMessageType(messageType protobuf.MessageType)
|
|
}
|