mautrix-whatsapp/no-crypto.go

12 lines
322 B
Go
Raw Normal View History

// +build !cgo nocrypto
package main
func NewCryptoHelper(bridge *Bridge) Crypto {
if !bridge.Config.Bridge.Encryption.Allow {
bridge.Log.Warnln("Bridge built without end-to-bridge encryption, but encryption is enabled in config")
}
bridge.Log.Debugln("Bridge built without end-to-bridge encryption")
return nil
}