Add getunopenedchatchannels to onboardingredirect (#3565)
This commit is contained in:
parent
7640f6d6f3
commit
ee00b460bf
1 changed files with 2 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { getUserDataAndCsrfToken } from '../chat/util';
|
||||
import getUnopenedChannels from '../src/utils/getUnopenedChannels';
|
||||
|
||||
HTMLDocument.prototype.ready = new Promise(resolve => {
|
||||
if (document.readyState !== 'loading') {
|
||||
|
|
@ -28,6 +29,7 @@ document.ready.then(
|
|||
.then(({ currentUser, csrfToken }) => {
|
||||
window.currentUser = currentUser;
|
||||
window.csrfToken = csrfToken;
|
||||
getUnopenedChannels();
|
||||
|
||||
if (redirectableLocation() && !onboardingSkippable(currentUser)) {
|
||||
window.location = `${window.location.origin}/onboarding?referrer=${window.location}`;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue