mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
close modal when time bomb group come to a end
This commit is contained in:
@@ -4,7 +4,7 @@ import { MessageService, MessageServiceDateLabel } from 'src/app/services/chat/m
|
||||
import { showDateDuration } from 'src/plugin/showDateDuration';
|
||||
import { chatHistory } from 'src/app/models/chatMethod';
|
||||
import { Storage } from '@ionic/storage';
|
||||
import { Platform } from '@ionic/angular';
|
||||
import { ModalController, NavController, Platform } from '@ionic/angular';
|
||||
import { SqliteService } from 'src/app/services/sqlite.service';
|
||||
import { NativeNotificationService } from 'src/app/services/native-notification.service';
|
||||
import { SessionStore } from 'src/app/store/session.service';
|
||||
@@ -101,7 +101,9 @@ export class RoomService {
|
||||
private NetworkServiceService: NetworkServiceService,
|
||||
private ChatSystemService: ChatSystemService,
|
||||
private ViewedMessageService: ViewedMessageService,
|
||||
private notificationService: NotificationsService
|
||||
private notificationService: NotificationsService,
|
||||
private modalController: ModalController,
|
||||
private navController: NavController
|
||||
) {
|
||||
/* this.NativeNotificationService.askForPermission() */
|
||||
|
||||
@@ -219,8 +221,8 @@ export class RoomService {
|
||||
if (difference < 0) {
|
||||
|
||||
this.deleteRoom();
|
||||
if(this.chatOpen) {
|
||||
|
||||
if(this.chatOpen && window.location.pathname.includes('chat')) {
|
||||
this.closeModal()
|
||||
}
|
||||
|
||||
} else {
|
||||
@@ -1290,4 +1292,8 @@ export class RoomService {
|
||||
this.members = members
|
||||
this.membersExcludeMe = users
|
||||
}
|
||||
|
||||
async closeModal() {
|
||||
await this.modalController.dismiss();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user