You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
nicer formatting
This commit is contained in:
@@ -219,8 +219,12 @@ export class RoomPermaLinkCreator {
|
|||||||
|
|
||||||
const serversByPopulation = Object.keys(this._populationMap)
|
const serversByPopulation = Object.keys(this._populationMap)
|
||||||
.sort((a, b) => this._populationMap[b] - this._populationMap[a])
|
.sort((a, b) => this._populationMap[b] - this._populationMap[a])
|
||||||
.filter(a => !candidates.includes(a) && !isHostnameIpAddress(a)
|
.filter(a => {
|
||||||
&& !isHostInRegex(a, this._bannedHostsRegexps) && isHostInRegex(a, this._allowedHostsRegexps));
|
return !candidates.includes(a) &&
|
||||||
|
!isHostnameIpAddress(a) &&
|
||||||
|
!isHostInRegex(a, this._bannedHostsRegexps) &&
|
||||||
|
isHostInRegex(a, this._allowedHostsRegexps);
|
||||||
|
});
|
||||||
|
|
||||||
const remainingServers = serversByPopulation.slice(0, MAX_SERVER_CANDIDATES - candidates.length);
|
const remainingServers = serversByPopulation.slice(0, MAX_SERVER_CANDIDATES - candidates.length);
|
||||||
candidates = candidates.concat(remainingServers);
|
candidates = candidates.concat(remainingServers);
|
||||||
|
|||||||
Reference in New Issue
Block a user