In the slightly olden days, iMessage - or whatever it was called then - had a built in jabber client, and there was brief period (Sierra era?) that iMessage/iCloud could sync up all your messages across google and apple and SMS.
I _think_ it would have enabled this functionality, if anyone knew and/or investigated it.
Yep, this is when it was called iChat. I used it for that exact purpose for some time. This was before Apple had their own protocol, though; I believe it just supported AIM and XMPP.
it's actually persisted more recently. I just checked a High Sierra machine. "Messages" has an "Add Jabber Account" menu option. An it's recent enough that it plays nice with all my existing more modern iPhone/macOS etc iCloud messages.
I _think_ it would have enabled this functionality, if anyone knew and/or investigated it.