From 5c5498c9c0d213aa245c0b4b33b5a1786623508c Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 24 Aug 2022 12:00:01 +0300 Subject: [PATCH] Disable notices for m.notice errors. Fixes #544 --- messagetracking.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/messagetracking.go b/messagetracking.go index 6f2199a..b8bab39 100644 --- a/messagetracking.go +++ b/messagetracking.go @@ -74,6 +74,8 @@ func errorToStatusReason(err error) (reason event.MessageStatusReason, status ev errors.Is(err, errBroadcastReactionNotSupported), errors.Is(err, errBroadcastSendDisabled): return event.MessageStatusUnsupported, event.MessageStatusFail, true, true, "" + case errors.Is(err, errMNoticeDisabled): + return event.MessageStatusUnsupported, event.MessageStatusFail, true, false, "" case errors.Is(err, errMediaUnsupportedType): return event.MessageStatusUnsupported, event.MessageStatusFail, true, true, err.Error() case errors.Is(err, errTimeoutBeforeHandling):