forked from Ivasoft/mattermost-mobile
Fix login not showing the usernames (#6652)
This commit is contained in:
committed by
GitHub
parent
d20245f63f
commit
e905f7df29
@@ -63,7 +63,7 @@ export const fetchConfigAndLicense = async (serverUrl: string, fetchOnly = false
|
||||
]);
|
||||
|
||||
if (!fetchOnly) {
|
||||
storeConfigAndLicense(serverUrl, config, license);
|
||||
await storeConfigAndLicense(serverUrl, config, license);
|
||||
}
|
||||
|
||||
return {config, license};
|
||||
|
||||
@@ -62,7 +62,9 @@ const CategoryBody = ({sortedChannels, unreadIds, unreadsOnTop, category, limit,
|
||||
}, [category.collapsed]);
|
||||
|
||||
useEffect(() => {
|
||||
fetchDirectChannelsInfo(serverUrl, directChannels);
|
||||
if (directChannels.length) {
|
||||
fetchDirectChannelsInfo(serverUrl, directChannels);
|
||||
}
|
||||
}, [directChannels.length]);
|
||||
|
||||
const height = ids.length ? ids.length * 40 : 0;
|
||||
|
||||
Reference in New Issue
Block a user