Procházet zdrojové kódy

Fix case sensitive recent list (#2730)

master
Zoltan Bettenbuk před 7 roky
rodič
revize
0456df239f
1 změnil soubory, kde provedl 5 přidání a 4 odebrání
  1. 5
    4
      react/features/recent-list/reducer.js

+ 5
- 4
react/features/recent-list/reducer.js Zobrazit soubor

@@ -1,6 +1,7 @@
1 1
 // @flow
2 2
 
3 3
 import { APP_WILL_MOUNT } from '../app';
4
+import { getURLWithoutParamsNormalized } from '../base/connection';
4 5
 import { ReducerRegistry } from '../base/redux';
5 6
 import { PersistenceRegistry } from '../base/storage';
6 7
 
@@ -186,8 +187,8 @@ function _updateConferenceDuration(state, { locationURL }) {
186 187
  * @returns {boolean}
187 188
  */
188 189
 function _urlStringEquals(a: string, b: string) {
189
-    // FIXME Case-sensitive comparison is wrong because the room name at least
190
-    // is case insensitive on the server and elsewhere (where it matters) in the
191
-    // client. I don't think domain names are case-sensitive either.
192
-    return a === b;
190
+    const aHref = getURLWithoutParamsNormalized(new URL(a));
191
+    const bHref = getURLWithoutParamsNormalized(new URL(b));
192
+
193
+    return aHref === bHref;
193 194
 }

Načítá se…
Zrušit
Uložit