Commit 43c7d507 authored by Tulir Asokan's avatar Tulir Asokan 🐈

Fix incorrect error check after retrying decryption

parent 8348d553
Pipeline #1826 passed with stages
in 1 minute and 23 seconds
......@@ -380,7 +380,7 @@ func (mx *MatrixHandler) waitLongerForSession(evt *event.Event) {
if mx.bridge.Crypto.WaitForSession(evt.RoomID, content.SenderKey, content.SessionID, extendedTimeout) {
mx.log.Debugfln("Got session %s after waiting more, trying to decrypt %s again", content.SessionID, evt.ID)
decrypted, err := mx.bridge.Crypto.Decrypt(evt)
if err != nil {
if err == nil {
_, _ = mx.bridge.Bot.RedactEvent(evt.RoomID, resp.EventID)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment