mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-11-09 20:00:12 +00:00
Harvey Tindall
69569e556a
mautrix-go now include a cryptohelper package, which solves all my issues and just works. the setting is now on by default, however packages are not yet built with it.
18 lines
306 B
Go
18 lines
306 B
Go
//go:build !e2ee
|
|
// +build !e2ee
|
|
|
|
package main
|
|
|
|
import "maunium.net/go/mautrix/id"
|
|
|
|
type Crypto struct{}
|
|
|
|
func MatrixE2EE() bool { return false }
|
|
|
|
func InitMatrixCrypto(d *MatrixDaemon) (err error) {
|
|
d.Encryption = false
|
|
return
|
|
}
|
|
|
|
func EncryptRoom(d *MatrixDaemon, roomID id.RoomID) error { return nil }
|