From ea9bd01d061a853442dfcc501c9b82498a81a9ad Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Wed, 30 Oct 2024 10:45:23 -0600 Subject: [PATCH] connector/chatinfo: allow bridging non-supergroup channels with lots of subscribers Signed-off-by: Sumner Evans --- pkg/connector/chatinfo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/connector/chatinfo.go b/pkg/connector/chatinfo.go index fb661561..f631418a 100644 --- a/pkg/connector/chatinfo.go +++ b/pkg/connector/chatinfo.go @@ -274,7 +274,7 @@ func (t *TelegramClient) GetChatInfo(ctx context.Context, portal *bridgev2.Porta return nil, fmt.Errorf("full chat is %T not *tg.ChannelFull", fullChat.FullChat) } - if !t.main.Config.ShouldBridge(channelFull.ParticipantsCount) { + if portal.Metadata.(*PortalMetadata).IsSuperGroup && !t.main.Config.ShouldBridge(channelFull.ParticipantsCount) { // TODO change this to a better error whenever that is implemented in mautrix-go return nil, fmt.Errorf("too many participants (%d) in chat %d", channelFull.ParticipantsCount, id) }