From 494646b16c92cebf2760c2e6fe265785e464d3fc Mon Sep 17 00:00:00 2001 From: Meta-Repo Bot Date: Wed, 21 Jan 2026 04:57:56 +0000 Subject: [PATCH] fix: increase websocket read limit to 1MB --- internal/bot/bot.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/bot/bot.go b/internal/bot/bot.go index c13b77b..c0fd9db 100644 --- a/internal/bot/bot.go +++ b/internal/bot/bot.go @@ -72,6 +72,9 @@ func (b *Bot) connect(ctx context.Context) error { return fmt.Errorf("connecting to matterbridge: %w", err) } + // Increase read limit to 1MB to handle large Matrix messages + conn.SetReadLimit(1024 * 1024) + b.mu.Lock() b.conn = conn b.mu.Unlock()