MM-61411 - fix incorrect linking case sensitive issue (#29683)

Этот коммит содержится в:
Pablo Vélez
2025-01-08 15:58:17 -05:00
коммит произвёл GitHub
родитель e7c583f312
Коммит 3a13dc2d5d

Просмотреть файл

@@ -25,10 +25,12 @@ export const isChannelLoading = (params: RouteViewParams, channel?: Channel, tea
return false;
}
const identifier = params.identifier?.toLowerCase();
if (channel && team) {
if (channel.type !== Constants.DM_CHANNEL && channel.name !== params.identifier) {
if (channel.type !== Constants.DM_CHANNEL && channel.name !== identifier) {
return true;
} else if (channel.type === Constants.DM_CHANNEL && teammate && params.identifier !== `@${teammate.username}`) {
} else if (channel.type === Constants.DM_CHANNEL && teammate && identifier !== `@${teammate.username}`) {
return true;
}