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.
pull/4759/head
damencho 6 years ago committed by Дамян Минков
parent 3e1a008399
commit a4cbbccb2a
  1. 7
      react/features/invite/functions.js
  2. 2
      react/features/recent-list/functions.web.js

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

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

Loading…
Cancel
Save