|
|
|
|
@ -37,7 +37,15 @@ roomCoordinator.add(LivechatRoomType, { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
instance.tabBar.openUserInfo(); |
|
|
|
|
/* @TODO Due to route information only updating on `Tracker.afterFlush`, |
|
|
|
|
we found out that calling the tabBar.openUserInfo() method at this point will cause a route change |
|
|
|
|
to the previous route instead of the current one, preventing livechat rooms from being opened. |
|
|
|
|
|
|
|
|
|
As a provisory solution, we're delaying the opening of the contextual bar, |
|
|
|
|
which then ensures that the route info is up to date. Although this solution works, |
|
|
|
|
we need to find a more reliable way of ensuring consistent route changes with up-to-date information. |
|
|
|
|
*/ |
|
|
|
|
setTimeout(() => instance.tabBar.openUserInfo(), 0); |
|
|
|
|
return true; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|