almogbaku
1 year ago
No known key found for this signature in database
GPG Key ID: 66C92B1C5B475512
1 changed files with
9 additions and
9 deletions
-
src/pkg/whatsapp/init.go
|
|
|
@ -97,15 +97,15 @@ func InitWaCLI(storeContainer, keysStoreContainer *sqlstore.Container) *whatsmeo |
|
|
|
store.DeviceProps.Os = &osName |
|
|
|
|
|
|
|
// Configure a separated database for accelerating encryption caching
|
|
|
|
//if keysStoreContainer != nil && device.ID != nil {
|
|
|
|
// innerStore := sqlstore.NewSQLStore(keysStoreContainer, *device.ID)
|
|
|
|
// device.Identities = innerStore
|
|
|
|
// device.Sessions = innerStore
|
|
|
|
// device.PreKeys = innerStore
|
|
|
|
// device.SenderKeys = innerStore
|
|
|
|
// device.MsgSecrets = innerStore
|
|
|
|
// device.PrivacyTokens = innerStore
|
|
|
|
//}
|
|
|
|
if keysStoreContainer != nil && device.ID != nil { |
|
|
|
innerStore := sqlstore.NewSQLStore(keysStoreContainer, *device.ID) |
|
|
|
device.Identities = innerStore |
|
|
|
device.Sessions = innerStore |
|
|
|
device.PreKeys = innerStore |
|
|
|
device.SenderKeys = innerStore |
|
|
|
device.MsgSecrets = innerStore |
|
|
|
device.PrivacyTokens = innerStore |
|
|
|
} |
|
|
|
|
|
|
|
// Create and configure the client
|
|
|
|
cli = whatsmeow.NewClient(device, waLog.Stdout("Client", config.WhatsappLogLevel, true)) |
|
|
|
|