Skip to content

Commit

Permalink
handlewhatsapp: ignore unknown protocol messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Sep 25, 2024
1 parent 4f57097 commit 3ccafa4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/connector/handlewhatsapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package connector

import (
"fmt"
"strings"
"time"

"go.mau.fi/whatsmeow/appstate"
Expand Down Expand Up @@ -229,7 +230,7 @@ func (wa *WhatsAppClient) handleWAMessage(evt *events.Message) {
return
}
parsedMessageType := getMessageType(evt.Message)
if parsedMessageType == "ignore" {
if parsedMessageType == "ignore" || strings.HasPrefix(parsedMessageType, "unknown_protocol_") {
return
}
wa.Main.Bridge.QueueRemoteEvent(wa.UserLogin, &WAMessageEvent{
Expand Down

0 comments on commit 3ccafa4

Please sign in to comment.