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);