Profile picture, notifications, chat romms

This commit is contained in:
Eudes Inácio
2023-09-18 05:41:33 +01:00
parent 540750e0e9
commit 527cc0f2a6
10 changed files with 236 additions and 124 deletions
@@ -1,4 +1,4 @@
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { Component, EventEmitter, Input, OnInit, Output,ViewContainerRef } from '@angular/core';
import { ModalController, PickerController, PopoverController } from '@ionic/angular';
import { ChatSystemService } from 'src/app/services/chat/chat-system.service';
import { DataService } from 'src/app/services/data.service';
@@ -49,6 +49,7 @@ export class NewGroupPage implements OnInit{
private toastService: ToastService,
public ThemeService: ThemeService,
private RouteService: RouteService,
private viewContainerRef: ViewContainerRef
)
{
this.loggedUserChat = SessionStore.user.ChatData['data'];
@@ -56,9 +57,16 @@ export class NewGroupPage implements OnInit{
}
ngOnInit() {
console.log(this.dataService.get("task"))
this.task = this.dataService.get("task");
this.event = this.dataService.get("event");
console.log(this.task)
this
if(this.task) {
this.link = this.dataService.get("link");
this.groupName = this.task.Folio;
@@ -93,12 +101,15 @@ export class NewGroupPage implements OnInit{
close() {
if(this.link) {
this.viewContainerRef.clear();
this.RouteService.goBack();
this.dataService.set("link", false);
} else {
if(this.roomId) {
this.backToChat.emit({roomId: this.roomId});
this.viewContainerRef.clear();
} else {
this.viewContainerRef.clear();
this.closeAllDesktopComponents.emit();
}