TL;DR - use Signal.
Re: self-hosting -- go for it! The DIY route is an excellent learning experience, so this is the way to go if you want your own privacy-friendly chat service. There's quite a lot to achieving "privacy" and "security" though (heck, even defining these is challenging)... have you self-hosted before? How important are service quality / speed / reliability, backups, mobile + desktop? Will the folks you want to chat with use/like it too?
Re: Signal -- definitely check out this app as well. They (the Signal Foundation) take privacy very seriously. Messages are only stored on devices running Signal, and they are ephemeral by default. Actually, that's a good thing to consider: How important are durable / offline archives of your chats, useful with other tools (like grep
?). Signal makes offline archiving difficult by design (for the sake of security/privacy).
Note that Signal is technically self-hostable, but I gather this is very difficult.
I self-host Nextcloud and I use Talk. I don't love it, but I do find it useful for some things. Flipping on Nextcloud is pretty easy, but it is challenging to make it secure, reliable, fast, etc. And you still have to convince others to use it.