mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
Bug session expired resolved
This commit is contained in:
@@ -5,6 +5,7 @@ import { ToastService } from 'src/app/services/toast.service';
|
||||
import { ThemeService } from 'src/app/services/theme.service'
|
||||
import { SetRoomOwnerPage } from 'src/app/modals/set-room-owner/set-room-owner.page';
|
||||
import { WsChatMethodsService } from 'src/app/services/chat/ws-chat-methods.service';
|
||||
import { HttpErrorResponse } from '@angular/common/http';
|
||||
|
||||
|
||||
@Component({
|
||||
@@ -168,6 +169,12 @@ export class ChatPopoverPage implements OnInit {
|
||||
|
||||
});
|
||||
}
|
||||
},(error: HttpErrorResponse) => {
|
||||
if(error.status === 401){
|
||||
this.chatService.refreshtoken()
|
||||
this.deleteGroup();
|
||||
}
|
||||
|
||||
});
|
||||
this.popoverController.dismiss('delete');
|
||||
this.modalController.dismiss('delete');
|
||||
|
||||
Reference in New Issue
Block a user