improve chat

This commit is contained in:
Peter Maquiran
2024-08-17 22:05:57 +01:00
parent eb615d4335
commit 650c772084
43 changed files with 712 additions and 1540 deletions
@@ -1,7 +1,6 @@
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { ModalController, PickerController } from '@ionic/angular';
import { ChatService } from 'src/app/services/chat.service';
import { ThemeService } from 'src/app/services/theme.service'
import { SessionStore } from 'src/app/store/session.service';
import { HttpResponse } from '@microsoft/signalr';
@@ -33,7 +32,6 @@ export class EditGroupPage implements OnInit {
constructor(
private modalController: ModalController,
private pickerController: PickerController,
private chatService: ChatService,
public ThemeService: ThemeService,
private RoomRepositoryService: RoomRepositoryService,
private httpErrorHandle: HttpErrorHandle,
@@ -48,16 +46,16 @@ export class EditGroupPage implements OnInit {
}
getRoomInfo(){
this.chatService.getRoomInfo(this.roomId).subscribe(room=>{
this.room = room['room'];
// this.chatService.getRoomInfo(this.roomId).subscribe(room=>{
// this.room = room['room'];
try {
this.groupName = this.room.name.split('-').join(' ');
} catch (error) {
this.groupName = this.room.name;
}
// try {
// this.groupName = this.room.name.split('-').join(' ');
// } catch (error) {
// this.groupName = this.room.name;
// }
});
// });
}
close() {
@@ -93,11 +91,11 @@ export class EditGroupPage implements OnInit {
updateGroup() {
this.showLoader = true;
this.chatService.getRoomInfo(this.roomId).subscribe(room=>{
this.room = room['room'];
this.showLoader = false;
this.openGroupMessage.emit(this.room._id);
});
// this.chatService.getRoomInfo(this.roomId).subscribe(room=>{
// this.room = room['room'];
// this.showLoader = false;
// this.openGroupMessage.emit(this.room._id);
// });
}
_ionChange(event){