mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
save
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
||||
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ModalController } from '@ionic/angular';
|
||||
import { AuthService } from 'src/app/services/auth.service';
|
||||
@@ -70,8 +70,16 @@ export class ChatPage implements OnInit {
|
||||
/* setInterval(()=>{ */
|
||||
this.getDirectMessages();
|
||||
this.getGroups();
|
||||
this.customRoom();
|
||||
/* }, 2000); */
|
||||
}
|
||||
customRoom(){
|
||||
let params = new HttpParams();
|
||||
params = params.set("types", "c");
|
||||
this.chatService.customsRooms(params).subscribe(res=>{
|
||||
console.log(res);
|
||||
});
|
||||
}
|
||||
|
||||
getDirectMessages(){
|
||||
this.showLoader = true;
|
||||
|
||||
@@ -117,6 +117,9 @@ export class GroupMessagesPage implements OnInit {
|
||||
component: ChatPopoverPage,
|
||||
cssClass: 'chat-popover',
|
||||
event: ev,
|
||||
componentProps: {
|
||||
room: this.room,
|
||||
},
|
||||
translucent: true
|
||||
});
|
||||
return await popover.present();
|
||||
@@ -127,7 +130,7 @@ export class GroupMessagesPage implements OnInit {
|
||||
cssClass: 'chat-options-popover',
|
||||
event: ev,
|
||||
componentProps: {
|
||||
roomId: this.room._id,
|
||||
room: this.room,
|
||||
},
|
||||
translucent: true
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user