I joined WhatsApp in late 2011 and left in late 2019. We always said we started with ejabberd and then replaced everything over time to get our system. I'm not sure about engagements with Erlang Solutions. I think that may have predated me, or it may have just not included me as I never did much with our chat server.
Facebook's chat system was built up with the same pattern: start with ejabberd, replace what you need to, eventually it's not the same at all (FB rewrote in C? because they couldn't hire Erlang people. WhatsApp rewrote in Erlang because Erlang is a very good fit for a chat app, and hired non-Erlang people and gave them Erlang books). I think RiotGames started with ejabberd as well.
Facebook's chat system was built up with the same pattern: start with ejabberd, replace what you need to, eventually it's not the same at all (FB rewrote in C? because they couldn't hire Erlang people. WhatsApp rewrote in Erlang because Erlang is a very good fit for a chat app, and hired non-Erlang people and gave them Erlang books). I think RiotGames started with ejabberd as well.