Browse Source

fix: bug with merge

pull/254/head
almogbaku 1 year ago
parent
commit
271444a190
No known key found for this signature in database GPG Key ID: 66C92B1C5B475512
  1. 18
      src/pkg/whatsapp/init.go

18
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))

Loading…
Cancel
Save