1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-09-19 19:00:11 +00:00
jfa-go/matrix_nocrypto.go
Harvey Tindall 69569e556a
matrix: working E2EE, on by default
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.
2024-08-10 19:31:54 +01:00

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 }