don't error on unsupported peer type in settings handler

This commit is contained in:
Adam Van Ymeren
2025-06-27 21:53:42 -07:00
parent 6280a7bae7
commit ac3ce3c097
+4 -1
View File
@@ -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