chat: Add a filter to reduce the number of events.
For now it cannot be configured, but having it already improve the performance by a good margin.
BUG 404355