mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix logout
This commit is contained in:
@@ -20,7 +20,7 @@ import { RoomService } from './chat/room.service';
|
||||
import { Storage } from '@ionic/storage';
|
||||
import { InitialsService } from './functions/initials.service';
|
||||
import { PermissionService } from './permission.service';
|
||||
|
||||
import { WsChatMethodsService } from 'src/app/services/chat/ws-chat-methods.service';
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
@@ -48,7 +48,8 @@ export class AuthService {
|
||||
private AttachmentsService: AttachmentsService,
|
||||
private storage: Storage,
|
||||
private initialsService: InitialsService,
|
||||
public p: PermissionService, ) {
|
||||
public p: PermissionService,
|
||||
public WsChatMethodsService: WsChatMethodsService, ) {
|
||||
|
||||
this.headers = new HttpHeaders();
|
||||
|
||||
@@ -201,6 +202,11 @@ export class AuthService {
|
||||
|
||||
|
||||
this.WsChatService.setStatus('online')
|
||||
|
||||
setTimeout(() => {
|
||||
this.WsChatMethodsService.getAllRooms();
|
||||
}, 200);
|
||||
|
||||
// alert('wsLogin')
|
||||
|
||||
}).catch((message) => {
|
||||
|
||||
Reference in New Issue
Block a user