Automatically redirect viewers after feedback

This commit is contained in:
Joao Victor 2022-04-04 10:09:40 -03:00
parent a6eefb4737
commit 275c0dc51f

View File

@ -230,7 +230,14 @@ class MeetingEnded extends PureComponent {
dispatched: true,
});
fetch(url, options).catch((e) => {
fetch(url, options).then(() => {
if (!(this.localUserRole.toLowerCase() === 'moderator')) {
const REDIRECT_WAIT_TIME = 5000;
setTimeout(() => {
logoutRouteHandler();
}, REDIRECT_WAIT_TIME);
}
}).catch((e) => {
logger.warn({
logCode: 'user_feedback_not_sent_error',
extraInfo: {