This commit is contained in:
Peter Maquiran
2022-10-12 17:32:13 +01:00
parent 658ac09c4a
commit a2782e0cbe
8 changed files with 2 additions and 30 deletions
@@ -1,14 +1,12 @@
import { Component, OnChanges, OnInit, Input, SimpleChanges, Output, EventEmitter, ViewChild, ElementRef, AfterViewInit, OnDestroy } from '@angular/core';
import { AnimationController, ModalController, PopoverController, Platform } from '@ionic/angular';
import { AlertService } from 'src/app/services/alert.service';
// import { AuthService } from 'src/app/services/auth.service';
import { ChatService } from 'src/app/services/chat.service';
import { ChatPopoverPage } from 'src/app/shared/popover/chat-popover/chat-popover.page';
import { GroupContactsPage } from './group-contacts/group-contacts.page';
import { ChatOptionsPopoverPage } from '../../popover/chat-options-popover/chat-options-popover.page';
import { ChatOptionsFeaturesPage } from 'src/app/modals/chat-options-features/chat-options-features.page';
import { TimeService } from 'src/app/services/functions/time.service';
// import { FileToBase64Service } from 'src/app/services/file/file-to-base64.service';
import { SearchPage } from 'src/app/pages/search/search.page';
import { SearchList } from 'src/app/models/search-document';
import { FileService } from 'src/app/services/functions/file.service';
@@ -31,7 +29,6 @@ import { FileOpener } from '@awesome-cordova-plugins/file-opener/ngx';
import { SessionStore } from 'src/app/store/session.service';
import { ViewMediaPage } from 'src/app/modals/view-media/view-media.page';
@Component({
selector: 'app-group-messages',
templateUrl: './group-messages.page.html',
@@ -46,7 +43,6 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
allUsers: any[] = [];
documents: SearchList[] = [];
room: any = new Array();
roomName: any;
members: any;
@@ -74,7 +70,6 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
@ViewChild('scrollMe') private myScrollContainer: ElementRef;
pdfurl = "http://www.africau.edu/images/default/sample.pdf";
downloadFile: any;
showAvatar = false;
@@ -96,11 +91,9 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
private modalController: ModalController,
public popoverController: PopoverController,
private chatService: ChatService,
//private authService: AuthService,
private animationController: AnimationController,
private alertService: AlertService,
private timeService: TimeService,
// private fileToBase64Service: FileToBase64Service,
private fileService: FileService,
public ThemeService: ThemeService,
private storage: Storage,
@@ -110,9 +103,6 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
private file: File,
private platform: Platform,
private fileOpener: FileOpener,
) {
this.loggedUserChat = SessionStore.user.ChatData['data'];
@@ -148,7 +138,6 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
this.getRoomInfo()
//}, 1000);
this.getChatMembers();
//this.getMessageDB();
this.deleteRecording();
this.loadFiles();
@@ -159,7 +148,6 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
}
countDownDate() {
//this.roomCountDownTime = this.timeService.countDownDateTimer(this.roomCountDownDate, this.room._id);
return this.timeService.countDownDateTimer(this.roomCountDownDate, this.roomId);
}