Listening to chat in the interval of 2mins

This commit is contained in:
tiago.kayaya
2021-01-13 11:05:21 +01:00
parent 586651e95e
commit ed84132a9e
2 changed files with 5 additions and 6 deletions
+4 -5
View File
@@ -67,11 +67,10 @@ export class ChatPage implements OnInit {
this.doRefresh();
}
doRefresh(){
this.getDirectMessages();
/* this.getConnectedRooms(); */
/* this.getConnectedChannels(); */
this.getGroups();
/* this.getConnectedUsers(); */
setInterval(()=>{
this.getDirectMessages();
this.getGroups();
}, 2000);
}
getGroups(){
this.showLoader = true;