MM-56071: Track multiple threads (#25775)
We can have 2 types of threads open at the same time. One from the thread view, and another from RHS. We add another variable to distinguish between the 2 states. In future, if we have the ability for more than 2 threads, then we would need to track by threadID. https://mattermost.atlassian.net/browse/MM-56071 ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3f2351c71f
Коммит
7dcf5f85a5
@@ -84,7 +84,11 @@ func (wr *WebSocketRouter) ServeWebSocket(conn *WebConn, r *model.WebSocketReque
|
||||
}
|
||||
if thChannelID, ok := r.Data["thread_channel_id"].(string); ok {
|
||||
// Set the channelID of the active thread.
|
||||
conn.SetActiveThreadChannelID(thChannelID)
|
||||
if isThreadView, ok := r.Data["is_thread_view"].(bool); ok && isThreadView {
|
||||
conn.SetActiveThreadViewThreadChannelID(thChannelID)
|
||||
} else {
|
||||
conn.SetActiveRHSThreadChannelID(thChannelID)
|
||||
}
|
||||
}
|
||||
|
||||
resp := model.NewWebSocketResponse(model.StatusOk, r.Seq, nil)
|
||||
|
||||
Ссылка в новой задаче
Block a user