2020-07-06 08:54:22 +00:00
|
|
|
package common
|
|
|
|
|
|
|
|
import (
|
|
|
|
"crypto/ecdsa"
|
|
|
|
|
|
|
|
"github.com/status-im/status-go/protocol/protobuf"
|
|
|
|
)
|
|
|
|
|
|
|
|
// RawMessage represent a sent or received message, kept for being able
|
|
|
|
// to re-send/propagate
|
|
|
|
type RawMessage struct {
|
2020-07-22 07:41:40 +00:00
|
|
|
ID string
|
|
|
|
LocalChatID string
|
|
|
|
LastSent uint64
|
|
|
|
SendCount int
|
|
|
|
Sent bool
|
|
|
|
ResendAutomatically bool
|
|
|
|
SkipEncryption bool
|
|
|
|
SendPushNotification bool
|
|
|
|
MessageType protobuf.ApplicationMetadataMessage_Type
|
|
|
|
Payload []byte
|
|
|
|
Sender *ecdsa.PrivateKey
|
|
|
|
Recipients []*ecdsa.PublicKey
|
2021-01-15 17:47:30 +00:00
|
|
|
SkipGroupMessageWrap bool
|
2020-07-06 08:54:22 +00:00
|
|
|
}
|