forked from lug/matterbridge
Update dependencies (#1929)
This commit is contained in:
14
vendor/go.mau.fi/whatsmeow/store/store.go
vendored
14
vendor/go.mau.fi/whatsmeow/store/store.go
vendored
@@ -99,6 +99,19 @@ type DeviceContainer interface {
|
||||
DeleteDevice(store *Device) error
|
||||
}
|
||||
|
||||
type MessageSecretInsert struct {
|
||||
Chat types.JID
|
||||
Sender types.JID
|
||||
ID types.MessageID
|
||||
Secret []byte
|
||||
}
|
||||
|
||||
type MsgSecretStore interface {
|
||||
PutMessageSecrets([]MessageSecretInsert) error
|
||||
PutMessageSecret(chat, sender types.JID, id types.MessageID, secret []byte) error
|
||||
GetMessageSecret(chat, sender types.JID, id types.MessageID) ([]byte, error)
|
||||
}
|
||||
|
||||
type Device struct {
|
||||
Log waLog.Logger
|
||||
|
||||
@@ -123,6 +136,7 @@ type Device struct {
|
||||
AppState AppStateStore
|
||||
Contacts ContactStore
|
||||
ChatSettings ChatSettingsStore
|
||||
MsgSecrets MsgSecretStore
|
||||
Container DeviceContainer
|
||||
|
||||
DatabaseErrorHandler func(device *Device, action string, attemptIndex int, err error) (retry bool)
|
||||
|
||||
Reference in New Issue
Block a user