matrix: end-to-end encryption by default

Existing chats will remain unencrypted but new ones will be.
This commit is contained in:
Harvey Tindall
2021-07-13 19:02:16 +01:00
parent 30198fab87
commit 833d02b032
10 changed files with 221 additions and 53 deletions

View File

@@ -819,7 +819,7 @@ func (app *appContext) sendByID(email *Message, ID ...string) error {
}
}
if mxChat, ok := app.storage.matrix[id]; ok && mxChat.Contact && matrixEnabled {
err = app.matrix.Send(email, mxChat.RoomID)
err = app.matrix.Send(email, mxChat)
if err != nil {
return err
}