summaryrefslogtreecommitdiffstats
path: root/vendor/go.mau.fi/whatsmeow/store/store.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2023-01-28 22:57:53 +0100
committerGitHub <noreply@github.com>2023-01-28 22:57:53 +0100
commit880586bac42817ffcfea5d9f746f503fa29915b8 (patch)
treea89374cba6f88975f12316ec8d1b8aa1d4c6ba79 /vendor/go.mau.fi/whatsmeow/store/store.go
parenteac2a8c8dc831f946970d327e2a80b26b0684255 (diff)
downloadmatterbridge-msglm-880586bac42817ffcfea5d9f746f503fa29915b8.tar.gz
matterbridge-msglm-880586bac42817ffcfea5d9f746f503fa29915b8.tar.bz2
matterbridge-msglm-880586bac42817ffcfea5d9f746f503fa29915b8.zip
Update dependencies (#1951)
Diffstat (limited to 'vendor/go.mau.fi/whatsmeow/store/store.go')
-rw-r--r--vendor/go.mau.fi/whatsmeow/store/store.go34
1 files changed, 23 insertions, 11 deletions
diff --git a/vendor/go.mau.fi/whatsmeow/store/store.go b/vendor/go.mau.fi/whatsmeow/store/store.go
index b26a28b8..36a6dce9 100644
--- a/vendor/go.mau.fi/whatsmeow/store/store.go
+++ b/vendor/go.mau.fi/whatsmeow/store/store.go
@@ -112,6 +112,17 @@ type MsgSecretStore interface {
GetMessageSecret(chat, sender types.JID, id types.MessageID) ([]byte, error)
}
+type PrivacyToken struct {
+ User types.JID
+ Token []byte
+ Timestamp time.Time
+}
+
+type PrivacyTokenStore interface {
+ PutPrivacyTokens(tokens ...PrivacyToken) error
+ GetPrivacyToken(user types.JID) (*PrivacyToken, error)
+}
+
type Device struct {
Log waLog.Logger
@@ -127,17 +138,18 @@ type Device struct {
BusinessName string
PushName string
- Initialized bool
- Identities IdentityStore
- Sessions SessionStore
- PreKeys PreKeyStore
- SenderKeys SenderKeyStore
- AppStateKeys AppStateSyncKeyStore
- AppState AppStateStore
- Contacts ContactStore
- ChatSettings ChatSettingsStore
- MsgSecrets MsgSecretStore
- Container DeviceContainer
+ Initialized bool
+ Identities IdentityStore
+ Sessions SessionStore
+ PreKeys PreKeyStore
+ SenderKeys SenderKeyStore
+ AppStateKeys AppStateSyncKeyStore
+ AppState AppStateStore
+ Contacts ContactStore
+ ChatSettings ChatSettingsStore
+ MsgSecrets MsgSecretStore
+ PrivacyTokens PrivacyTokenStore
+ Container DeviceContainer
DatabaseErrorHandler func(device *Device, action string, attemptIndex int, err error) (retry bool)
}