mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-01-18 16:47:42 +01:00
deleting the crypto DB resulted in InitMatrixCrypto taking ages, added a Initing/Inited log pair around the function so it's obvious this is the culprit if any one else faces the same thing.
23 lines
393 B
Go
23 lines
393 B
Go
//go:build !e2ee
|
|
// +build !e2ee
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/hrfee/jfa-go/logger"
|
|
"maunium.net/go/mautrix/id"
|
|
)
|
|
|
|
type Crypto struct{}
|
|
|
|
func BuildTagsE2EE() {}
|
|
|
|
func MatrixE2EE() bool { return false }
|
|
|
|
func InitMatrixCrypto(d *MatrixDaemon, logger *logger.Logger) (err error) {
|
|
d.Encryption = false
|
|
return
|
|
}
|
|
|
|
func EncryptRoom(d *MatrixDaemon, roomID id.RoomID) error { return nil }
|