matrix: fix instant crash with e2ee

also some more attempts at fixing it, so far all i've found is that if
we don't delete the cryptoStore, the matrix client also gets the same
error we do if it send s a message to us (no session with given ID
found).
This commit is contained in:
Harvey Tindall
2021-07-20 15:34:39 +01:00
parent db526fc611
commit aa2891fc87
4 changed files with 18 additions and 21 deletions
-1
View File
@@ -140,7 +140,6 @@ func (d *MatrixDaemon) handleMessage(source mautrix.EventSource, evt *event.Even
if evt.Sender == d.userID {
return
}
fmt.Printf("RECV %+v\n", evt.Content)
lang := "en-us"
if l, ok := d.languages[evt.RoomID]; ok {
if _, ok := d.app.storage.lang.Telegram[l]; ok {