Mattermost, Inc.

How to trigger a reload on clients?

I wrote some code which removes deleted posts (queries for posts older than …, deletes them and then removes them from the database). BTW it is a pity that it is not possible not to display (deleted post).

This works but the clients need to be refreshed in order for the posts to actually vanish from the display. Is there a way to force this reload on all connected devices?

Since they are connected via websockets, that should be doable but not sure if available.

Hi @WoJ, are you working on a plugin?

I am not sure to be frank. I wrote some quick code to work around the lack of TTL for the posts (which exists I believe in some enterprise versions) and hit a refresh problem on the clients.

I could turn the code into a plugin (if I am a good enough developper to do that) but I am afraid that I am facing a deliberate design decision (the forced display of (deleted post)) which I may not be able to take care of.