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.
This commit is contained in:
damencho 2019-10-14 16:16:10 +01:00 committed by Дамян Минков
parent 3e1a008399
commit a4cbbccb2a
2 changed files with 8 additions and 1 deletions

View File

@ -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;
}

View File

@ -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
};
}));