Browse Source

Fixes loading recent lists on wrong meeting name stored.

decodeURIComponent is not needed any more and after adding a validation such meeting name should not happen to be stored.
master
damencho 6 years ago
parent
commit
a4cbbccb2a
2 changed files with 8 additions and 1 deletions
  1. 7
    0
      react/features/invite/functions.js
  2. 1
    1
      react/features/recent-list/functions.web.js

+ 7
- 0
react/features/invite/functions.js View File

@@ -577,5 +577,12 @@ export function _decodeRoomURI(url: string) {
577 577
         roomUrl = decodeURI(roomUrl);
578 578
     }
579 579
 
580
+    // Handles a special case where the room name has % encoded, the decoded will have
581
+    // % followed by a char (non-digit) which is not a valid URL and room name ... so we do not
582
+    // want to show this decoded
583
+    if (roomUrl.match(/.*%[^\d].*/)) {
584
+        return url;
585
+    }
586
+
580 587
     return roomUrl;
581 588
 }

+ 1
- 1
react/features/recent-list/functions.web.js View File

@@ -18,7 +18,7 @@ export function toDisplayableList(recentList) {
18 18
                     date: item.date,
19 19
                     duration: item.duration,
20 20
                     time: [ item.date ],
21
-                    title: decodeURIComponent(parseURIString(item.conference).room),
21
+                    title: parseURIString(item.conference).room,
22 22
                     url: item.conference
23 23
                 };
24 24
             }));

Loading…
Cancel
Save