Impact of Modifying Message Body Before Acknowledgment with persistent_message_receiver.ack()

hobart
hobart Member Posts: 4
edited January 20 in PubSub+ Event Broker #1

I have a question regarding the persistent_message_receiver.ack() method.

According to the documentation, https://docs.solace.com/API-Developer-Online-Ref-Documentation/python/source/rst/solace.messaging.receiver.html#module-solace.messaging.receiver.persistent_message_receiver ,when I acknowledge a message, I need to attach the message as a parameter. In our use case, the message body may be modified before acknowledging. I would like to know if this will cause any issues that might result in the acknowledgment failing.

If this is the case, is there a solution to still acknowledge the message even if some of its content has been modified?

Thanks

Hobart