Fix case sensitive recent list (#2730)
This commit is contained in:
parent
2f23f8e400
commit
0456df239f
|
@ -1,6 +1,7 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import { APP_WILL_MOUNT } from '../app';
|
import { APP_WILL_MOUNT } from '../app';
|
||||||
|
import { getURLWithoutParamsNormalized } from '../base/connection';
|
||||||
import { ReducerRegistry } from '../base/redux';
|
import { ReducerRegistry } from '../base/redux';
|
||||||
import { PersistenceRegistry } from '../base/storage';
|
import { PersistenceRegistry } from '../base/storage';
|
||||||
|
|
||||||
|
@ -186,8 +187,8 @@ function _updateConferenceDuration(state, { locationURL }) {
|
||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
function _urlStringEquals(a: string, b: string) {
|
function _urlStringEquals(a: string, b: string) {
|
||||||
// FIXME Case-sensitive comparison is wrong because the room name at least
|
const aHref = getURLWithoutParamsNormalized(new URL(a));
|
||||||
// is case insensitive on the server and elsewhere (where it matters) in the
|
const bHref = getURLWithoutParamsNormalized(new URL(b));
|
||||||
// client. I don't think domain names are case-sensitive either.
|
|
||||||
return a === b;
|
return aHref === bHref;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue