mirror of
https://github.com/discourse/discourse.git
synced 2025-02-23 18:04:27 +08:00

What does this commit do?? This commit introduces two changes: 1. As a follow up review comment to cc463c3e9bed468defe5399ee4fa16216ed96264, we remove the top level recipientNames cache in composer message to be a property of the `ComposerMessage` component instead. Across components, we're more likely to get a cache miss than a hit since we're caching the entire recipient array so we can just drop it. If we really need this optimisation, we should probably use a map and cache the information for each user instead. However, the request is fairly cheap so we avoid that optimisation for now. 2. This commit adds a debounce to `_typeReply` as well since we were not debouncing and the method was being called each time we received the event.