Skip to content

Commit 25ea0d9

Browse files
committed
handlewhatsapp: ignore motion photos for now
1 parent 040456f commit 25ea0d9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkg/connector/handlewhatsapp.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,12 @@ func (wa *WhatsAppClient) handleWAMessage(ctx context.Context, evt *events.Messa
321321
ProtocolMessage: protocolMsg,
322322
}
323323
} else if assocType == waE2E.MessageAssociation_MOTION_PHOTO {
324-
evt.Message = evt.Message.GetAssociatedChildMessage().GetMessage()
324+
//evt.Message = evt.Message.GetAssociatedChildMessage().GetMessage()
325+
wa.UserLogin.Log.Debug().
326+
Str("message_id", evt.Info.ID).
327+
Str("parent_id", messageAssoc.GetParentMessageKey().GetID()).
328+
Msg("Ignoring motion photo update")
329+
return
325330
}
326331

327332
parsedMessageType := getMessageType(evt.Message)

0 commit comments

Comments
 (0)