[MM-62945] Load new channels for users added even if they're on a different team (#30167)
Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b604930cf6
Коммит
bd376d3473
@@ -1042,9 +1042,8 @@ function handleUserAddedEvent(msg) {
|
||||
}
|
||||
|
||||
// Load the channel so that it appears in the sidebar
|
||||
const currentTeamId = getCurrentTeamId(doGetState());
|
||||
const currentUserId = getCurrentUserId(doGetState());
|
||||
if (currentTeamId === msg.data.team_id && currentUserId === msg.data.user_id) {
|
||||
if (currentUserId === msg.data.user_id) {
|
||||
doDispatch(fetchChannelAndAddToSidebar(msg.broadcast.channel_id));
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user