2021-07-16 14:41:08 +00:00
|
|
|
// +build !e2ee
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"maunium.net/go/mautrix"
|
|
|
|
"maunium.net/go/mautrix/event"
|
|
|
|
"maunium.net/go/mautrix/id"
|
|
|
|
)
|
|
|
|
|
2021-07-16 16:11:17 +00:00
|
|
|
type Crypto struct{}
|
|
|
|
|
2021-07-16 14:41:08 +00:00
|
|
|
func MatrixE2EE() bool { return false }
|
|
|
|
|
|
|
|
func InitMatrixCrypto(d *MatrixDaemon) (err error) {
|
|
|
|
d.Encryption = false
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func HandleSyncerCrypto(startTime int64, d *MatrixDaemon, syncer *mautrix.DefaultSyncer) {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func CryptoShutdown(d *MatrixDaemon) {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func EncryptRoom(d *MatrixDaemon, room *mautrix.RespCreateRoom, userID id.UserID) (encrypted bool) {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func SendEncrypted(d *MatrixDaemon, content *event.MessageEventContent, roomID id.RoomID) (err error) {
|
|
|
|
err = d.send(content, roomID)
|
|
|
|
return
|
|
|
|
}
|