Skip to content

Commit 3ccafa4

Browse files
committed
handlewhatsapp: ignore unknown protocol messages
1 parent 4f57097 commit 3ccafa4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/connector/handlewhatsapp.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package connector
22

33
import (
44
"fmt"
5+
"strings"
56
"time"
67

78
"go.mau.fi/whatsmeow/appstate"
@@ -229,7 +230,7 @@ func (wa *WhatsAppClient) handleWAMessage(evt *events.Message) {
229230
return
230231
}
231232
parsedMessageType := getMessageType(evt.Message)
232-
if parsedMessageType == "ignore" {
233+
if parsedMessageType == "ignore" || strings.HasPrefix(parsedMessageType, "unknown_protocol_") {
233234
return
234235
}
235236
wa.Main.Bridge.QueueRemoteEvent(wa.UserLogin, &WAMessageEvent{

0 commit comments

Comments
 (0)