This commit is contained in:
Peter Maquiran
2022-10-03 11:02:32 +01:00
parent a226f722aa
commit b3dfb396f3
7 changed files with 20 additions and 1 deletions
+1
View File
@@ -258,6 +258,7 @@
[eventAttendees]="contacts"
(onAddEvent)="closeNewEventComponentAndOpenChat($event)"
(openAttendeesComponent)="closeNewEventComponentAndOpenChat($event)"
(backToChat)="backToChat($event)"
[style.display]="showNewEvent ? 'flex' : 'none'"
class=" height-100 flex-column">
</app-new-event>
+12
View File
@@ -737,6 +737,18 @@ export class ChatPage implements OnInit {
}
backToChat({roomId}) {
const room = this.ChatSystemService.getRoomById(roomId);
if(room.isGroup) {
this.openGroupMessagesPage(room.id);
} else {
this.openMessagesPage(room.id);
}
}
async openChatDebuggingPageModal(roomId?: any) {
const modal = await this.modalController.create({
@@ -85,6 +85,7 @@ export class NewGroupPage implements OnInit {
this.isGroupCreated = true;
this.addContacts(res.result);
this.ChatSystemService.getAllRooms();
setTimeout(() => {
this.ChatSystemService.subscribeToRoomUpdate(res.result.rid, res.result);
@@ -393,6 +393,7 @@ export class ChatSystemService {
room.receiveMessageDelete();
room.sortRoomList = this.sortRoomList
room.chatServiceDeleteRoom = this.deleteRoom
room.isGroup = !this.isIndividual(roomData)
// create individual room
if(this.isIndividual(roomData)) {
+1
View File
@@ -64,6 +64,7 @@ export class RoomService {
}
}
isGroup: boolean
subscribeAttempt = false
scrollDown = () => { }
@@ -84,6 +84,7 @@ export class NewEventPage implements OnInit {
@Output() clearContact = new EventEmitter<any>();
@Output() GoBackEditOrAdd = new EventEmitter<any>();
@Output() cloneAllmobileComponent = new EventEmitter<any>();
@Output() backToChat = new EventEmitter<any>();
documents:SearchList[] = [];
@@ -334,10 +335,10 @@ export class NewEventPage implements OnInit {
close() {
this.deleteTemporaryData();
this.cloneAllmobileComponent.emit({roomId:this.roomId});
this.clearContact.emit();
this.setIntervenient.emit([]);
this.setIntervenientCC.emit([]);
this.backToChat.emit({roomId:this.roomId})
}
getRecurrenceTypes() {
@@ -170,6 +170,8 @@ export class NewGroupPage implements OnInit{
})
});
this.ChatSystemService.getAllRooms();
setTimeout(() => {
this.groupName = ""
}, 150);