Prayer is about intent. The church (a body of believers...not a building) should pray righteously to commune with the Father. If the intent in prayer is self-promotion then you're in error like the Pharisees. Jesus prayed publicly and privately exhibiting only righteousness either way....be like Jesus.