From ac3ce3c0979291a66d764498ec547e974d7d8379 Mon Sep 17 00:00:00 2001 From: Adam Van Ymeren Date: Fri, 27 Jun 2025 21:53:42 -0700 Subject: [PATCH] don't error on unsupported peer type in settings handler --- pkg/connector/telegram.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/connector/telegram.go b/pkg/connector/telegram.go index afc169dc..75a00eac 100644 --- a/pkg/connector/telegram.go +++ b/pkg/connector/telegram.go @@ -1089,7 +1089,10 @@ func (t *TelegramClient) transferEmojisToMatrix(ctx context.Context, customEmoji func (t *TelegramClient) onNotifySettings(ctx context.Context, e tg.Entities, update *tg.UpdateNotifySettings) error { if update.Peer.TypeID() != tg.NotifyPeerTypeID { - return fmt.Errorf("unsupported peer type %s", update.Peer.TypeName()) + zerolog.Ctx(ctx).Debug(). + Str("peer_type", update.Peer.TypeName()). + Msg("Ignoring unsupported peer type") + return nil } var mutedUntil *time.Time