mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-17 19:51:46 +02:00
For single instance, allow domain present & match
This commit is contained in:
parent
de9bf4bb47
commit
c0a4574069
@ -508,7 +508,16 @@ module.exports = React.createClass({
|
|||||||
// If there's only one instance in this protocol, use it
|
// If there's only one instance in this protocol, use it
|
||||||
// as long as it has no domain (which we assume to mean it's
|
// as long as it has no domain (which we assume to mean it's
|
||||||
// there is only one possible instance).
|
// there is only one possible instance).
|
||||||
if (the_instance.fields.domain === undefined && network_info.domain === undefined) {
|
if (
|
||||||
|
(
|
||||||
|
the_instance.fields.domain === undefined &&
|
||||||
|
network_info.domain === undefined
|
||||||
|
) ||
|
||||||
|
(
|
||||||
|
the_instance.fields.domain !== undefined &&
|
||||||
|
the_instance.fields.domain == network_info.domain
|
||||||
|
)
|
||||||
|
) {
|
||||||
matched_instance = the_instance;
|
matched_instance = the_instance;
|
||||||
}
|
}
|
||||||
} else if (network_info.domain) {
|
} else if (network_info.domain) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user