From 83dee266fcce44a92674cc126a8fe930825f919a Mon Sep 17 00:00:00 2001 From: Gerardo Rodriguez Date: Tue, 27 Oct 2026 18:18:56 +0000 Subject: [PATCH] Only send voice messages as GroupMe voice notes --- pkg/connector/handlematrix.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/connector/handlematrix.go b/pkg/connector/handlematrix.go index 988e8b4..7c3fd88 100644 --- a/pkg/connector/handlematrix.go +++ b/pkg/connector/handlematrix.go @@ -122,6 +122,10 @@ func (gc *GMClient) HandleMatrixMessage(ctx context.Context, msg *bridgev2.Matri if gmid == "" || (portalType != PortalTypeGroup && portalType != PortalTypeDM) { return nil, fmt.Errorf("invalid GroupMe portal") } + if content.MsgType == event.MsgAudio && content.MSC3245Voice == nil { + // GroupMe only has voice notes; other audio isn't in the room capabilities. + return nil, bridgev2.ErrUnsupportedMessageType + } text := content.Body switch content.MsgType { case event.MsgImage, event.MsgVideo, event.MsgFile: