This commit is contained in:
tiago.kayaya
2021-08-18 18:59:02 +01:00
17 changed files with 232 additions and 53 deletions
+4 -4
View File
@@ -91,7 +91,7 @@ export class MessagesPage implements OnInit, AfterViewChecked {
} catch(err) { }
}
sendMessage(){
sendMessage() {
let body = {
"message":
{
@@ -104,7 +104,7 @@ export class MessagesPage implements OnInit, AfterViewChecked {
this.message = "";
}
loadMessages(){
loadMessages() {
this.showLoader = true;
this.chatService.getRoomMessages(this.roomId).subscribe(res => {
/* console.log(res); */
@@ -113,7 +113,7 @@ export class MessagesPage implements OnInit, AfterViewChecked {
this.showLoader = false;
})
}
getChatMembers(){
getChatMembers() {
this.showLoader = true;
this.chatService.getMembers(this.roomId).subscribe(res=> {
this.members = res['members'];
@@ -167,7 +167,7 @@ export class MessagesPage implements OnInit, AfterViewChecked {
return await popover.present();
}
async serverLongPull(){
async serverLongPull() {
this.chatService.getRoomMessages(this.roomId).subscribe(async res => {
if (res == 502) {