Add "new-group" and "contacts" pages

- Style new group page
- Improve style in chat page
This commit is contained in:
tiago.kayaya
2020-12-21 16:37:44 +01:00
parent 4e3cd4ac73
commit 4c16f7bd83
31 changed files with 1223 additions and 233 deletions
+12 -3
View File
@@ -35,6 +35,7 @@ export class AuthService {
if (result)
{
this.ValidatedUser = user;
}
return result;
}
@@ -46,14 +47,22 @@ export class AuthService {
//Login to rocketChat server
loginChat(postData: any):Observable<any> {
return this.httpService.post('login', postData);
const res = this.httpService.post('login', postData);
const res2 = res.subscribe(res=>{
this.storageService.store(res);
});
return res;
}
//Get user data from RocketChat
getUserData(){
this.storageService.get(AuthConnstants.AUTH).then(res=>{
const res = this.storageService.get('user');
console.log(res);
/* this.storageService.get(AuthConnstants.AUTH).then(res=>{
this.userData$.next(res);
})
}) */
}
/* getProfile(){