Good place in code to enable retain?

While keeping my finger crossed for official sensor retain support, I’ve been looking at the code trying to figure out what’s a good place to enable message retention flag.
It seem to me that there are two possible candidates:
main.ino:336: void pub(const char* topicori, const char* payload, bool retainFlag) {
and
main.ino:427: pubMQTT(topic, payload, false);

Is any of these a ‘good’ point to force a true? (ie, not breaking stuff everywhere else? :slight_smile: )
Thanks

This would be the best place to do it at build time.

Thanks @1technophile !