Have you considered the alternative? Federated chat compared with WhatsApp and Signal
WhatsApp, Signal, Matrix and XMPP compared on federation, self-hosting, metadata and encryption, and when running your own chat server isn't worth it.
homebrewserver.club