This commit is contained in:
Peter Maquiran
2021-08-25 11:51:02 +01:00
parent f469fa0588
commit 40667918ff
6 changed files with 41 additions and 10 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
import { Injectable } from '@angular/core';
import { localstoreService } from '../localstore.service'
import { SHA1 } from 'crypto-js'
import { localstoreService } from '../localstore.service';
import { SHA1 } from 'crypto-js';
@Injectable({
providedIn: 'root'
@@ -16,7 +16,7 @@ export class ChatUserService {
this.keyName = ('chat'+SHA1(this.constructor.name)).toString()
setTimeout(()=>{
setTimeout(()=> {
let restore = localstoreService.get(this.keyName, {})
this._userList = restore.userList || {}
}, 10)