From 92da8c7044e0e07ec988a79d9d992437e0cadda3 Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 6 Dec 2020 17:49:35 +0100 Subject: Mark messages as read (matrix). Fixes #1317 (#1328) --- bridge/matrix/matrix.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bridge') diff --git a/bridge/matrix/matrix.go b/bridge/matrix/matrix.go index acb20261..69d0264b 100644 --- a/bridge/matrix/matrix.go +++ b/bridge/matrix/matrix.go @@ -399,6 +399,11 @@ 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()) + } } } -- cgit v1.2.3