mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 19:38:32 +08:00
6efae69c61
This commit fixes two issues with the thread list: 1. All threads were being shown regardless of whether the user had a membership in the thread. This was happening because the list and the channel share the same thread store, so if the channel had OMs with threads we would load them and they showed in the list. 2. Threads created by the user from a staged thread would double up. This is because the _cache in the channel threadsManager would use the staged thread ID even after we'd replaced the object's ID with the actual thread from the DB. The answer to this is to remove and re-add the thread to the local cache with the actual ID. |
||
---|---|---|
.. | ||
chat | ||
discourse-details | ||
discourse-lazy-videos | ||
discourse-local-dates | ||
discourse-narrative-bot | ||
discourse-presence | ||
poll | ||
styleguide |