Add support for transaction in messenger publish