mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
save
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user