Total document

This commit is contained in:
Peter Maquiran
2021-08-18 18:31:35 +01:00
parent f273201d74
commit b2373a5546
10 changed files with 77 additions and 13 deletions
+4 -4
View File
@@ -90,7 +90,7 @@ export class MessagesPage implements OnInit, AfterViewChecked {
} catch(err) { }
}
sendMessage(){
sendMessage() {
let body = {
"message":
{
@@ -103,7 +103,7 @@ export class MessagesPage implements OnInit, AfterViewChecked {
this.message = "";
}
loadMessages(){
loadMessages() {
this.showLoader = true;
this.chatService.getRoomMessages(this.roomId).subscribe(res => {
/* console.log(res); */
@@ -112,7 +112,7 @@ export class MessagesPage implements OnInit, AfterViewChecked {
this.showLoader = false;
})
}
getChatMembers(){
getChatMembers() {
this.showLoader = true;
this.chatService.getMembers(this.roomId).subscribe(res=> {
this.dmUsers = res['members'].filter(data => data.username != this.loggedUser.me.username)
@@ -158,7 +158,7 @@ async openChatOptions(ev?: any) {
return await popover.present();
}
async serverLongPull(){
async serverLongPull() {
this.chatService.getRoomMessages(this.roomId).subscribe(async res => {
if (res == 502) {