Matrix integration

This commit is contained in:
Eneko Nieto
2021-02-24 00:09:54 +01:00
parent 3030be9cfb
commit efe1c9002c
7 changed files with 64 additions and 46 deletions

View File

@@ -1,5 +1,6 @@
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
import { Component, OnInit } from '@angular/core';
import { AuthService } from './services/auth.service';
import { ChatService } from './services/chat.service';
@Component({
// tslint:disable-next-line:component-selector
@@ -11,11 +12,17 @@ export class AppComponent implements OnInit {
showOverlay = true;
constructor(
private authService: AuthService
private authService: AuthService,
private chatService: ChatService
) { }
async ngOnInit(): Promise<void> {
await this.authService.isLogged;
console.log('AppComponent.ngInit()');
const isLogged = await this.authService.isLogged;
this.showOverlay = false;
if (isLogged) {
console.log('GO TO SSO LOGIN');
this.chatService.goToSsoLogin();
}
}
}