Skip to content
This repository has been archived by the owner on Mar 26, 2022. It is now read-only.

Commit

Permalink
Auto-refresh of messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Nacho888 committed Mar 11, 2019
1 parent 560ab30 commit fc934fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/services/chat.service.ts
Expand Up @@ -83,6 +83,7 @@ export class ChatService {
this.chatMessages.length = 0;
this.loadMessagesFromTo(this.otherUser, this.thisUser);
this.loadMessagesFromTo(this.thisUser, this.otherUser);
setTimeout(this.loadMessages, 5000);
}

private async loadMessagesFromTo(user1 : User, user2 : User) {
Expand Down Expand Up @@ -189,7 +190,7 @@ export class ChatService {
fileClient.readFolder(charUrl).then(success => {
console.log("Folder structure correct");
}, err => {
console.log("Attemting to create: " + charUrl);
console.log("Attempting to create: " + charUrl);
this.createFolderStructure(charUrl).then(res => {
console.log("Creating ACL file...");
this.grantAccessToFolder(charUrl, this.otherUser);
Expand Down

0 comments on commit fc934fe

Please sign in to comment.