mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +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);
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user