mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
improve chat
This commit is contained in:
@@ -93,14 +93,12 @@ export class GroupContactsPage implements OnInit {
|
||||
if(this.room.t == "p"){
|
||||
this.chatService.getGroupMembers(this.room._id).subscribe(res=>{
|
||||
this.members = res['members'];
|
||||
this.ChatSystemService.getAllRooms()
|
||||
this.loadUsers();
|
||||
});
|
||||
}
|
||||
else if(this.room.t == "c"){
|
||||
this.chatService.getChannelMembers(this.room._id).subscribe(res=>{
|
||||
this.members = res['members'];
|
||||
this.ChatSystemService.getAllRooms()
|
||||
this.loadUsers();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -145,9 +145,6 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
||||
this.getChatMembers();
|
||||
|
||||
this.getRoomMessageDB(this.roomId);
|
||||
this.ChatSystemService.getUserOfRoom(this.roomId).then((value) => {
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -162,7 +162,6 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
||||
|
||||
ngOnInit() {
|
||||
this.createDirectoryImage()
|
||||
this.ChatSystemService.getAllRooms();
|
||||
this.chatService.refreshtoken();
|
||||
this.ChatSystemService.getUserOfRoom(this.roomId).then((value) => {
|
||||
|
||||
|
||||
@@ -136,6 +136,7 @@ export class LoginPage implements OnInit {
|
||||
await this.authService.loginToChatWs();
|
||||
this.ChatService.setheader()
|
||||
this.ChatService.refreshtoken();
|
||||
this.ChatSystemService.ReLoadChat();
|
||||
|
||||
}
|
||||
|
||||
@@ -164,7 +165,7 @@ export class LoginPage implements OnInit {
|
||||
await this.authService.loginToChatWs();
|
||||
this.ChatService.setheader();
|
||||
this.ChatService.refreshtoken();
|
||||
this.ChatSystemService.ReLoadChat();
|
||||
this.ChatSystemService.loadChat();
|
||||
}
|
||||
|
||||
this.getToken();
|
||||
|
||||
Reference in New Issue
Block a user