commit 4620b494c10c766145d5cd96963e4b3514f8e2b5
Author: Wim <wim@42.be>
Date: Sun Dec 06 17:49:35 2020 +0000
diff --git a/bridge/matrix/matrix.go b/bridge/matrix/matrix.go
index acb2026..69d0264 100644
--- a/bridge/matrix/matrix.go
+++ b/bridge/matrix/matrix.go
@@ -3996 +39911 @@ func (b *Bmatrix) handleEvent(ev *matrix.Event) {
b.Log.Debugf("<= Sending message from %s on %s to gateway", ev.Sender, b.Account)
b.Remote <- rmsg
+
+ // not crucial, so no ratelimit check here
+ if err := b.mc.MarkRead(ev.RoomID, ev.ID); err != nil {
+ b.Log.Errorf("couldn't mark message as read %s", err.Error())
+ }
}
}