mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 19:14:11 +08:00

Chat drawer was using the `DiscourseURL` hook `afterRouteComplete`. This hook suffer from a very poor implementation which makes it very unreliable: ```javascript if (typeof opts.afterRouteComplete === "function") { schedule("afterRender", opts.afterRouteComplete); } ``` This commit attempts to return the promise from `handleURL` to directly use it and have a very reliable after transition hook.