Co-authored-by: Miguel de la Cruz <miguel@ctrlz.es> Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f9fb13c7e6
Коммит
613bb616cd
@@ -36,10 +36,10 @@ export default function UserProfile({
|
|||||||
}: Props) {
|
}: Props) {
|
||||||
// Fetch remote info when component mounts for remote users
|
// Fetch remote info when component mounts for remote users
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (user?.remote_id && (!remoteNames || remoteNames.length === 0)) {
|
if (user?.remote_id) {
|
||||||
actions.fetchRemoteClusterInfo(user.remote_id);
|
actions.fetchRemoteClusterInfo(user.remote_id);
|
||||||
}
|
}
|
||||||
}, [user?.remote_id, remoteNames, actions]);
|
}, [user?.remote_id]);
|
||||||
let name: ReactNode;
|
let name: ReactNode;
|
||||||
if (user && displayUsername) {
|
if (user && displayUsername) {
|
||||||
name = `@${(getUsername(user))}`;
|
name = `@${(getUsername(user))}`;
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user