Hey @dominicletz, have you also considered integrating IC WebSockets into your new solution?
Not sure if you strictly need it, as it looks like you’re using the IC just as a “storage” for the messages for the users to download them when needed, rather than a real-time message relay. In case you need it though, I’d be interested in knowing if you have considered using IC WebSockets and, eventually, what were the blockers that you faced, if any.
We also have a pretty straightforward tutorial with the link to the example source code, if you’re interested.