The emerging Messaging Layer Security standard includes considerations for federated environments:
https://datatracker.ietf.org/doc/html/draft-ietf-mls-federation-02
“Different applications operated by different entities can use MLS to exchange end-to-end encrypted messages. For example, in a messaging application, clients of messaging1.tld can encrypt and decrypt end-to-end encrypted messages from messaging2.tld.”