Skip to content

Commit

Permalink
Merge pull request #624 from AiursoftWeb/probeFile
Browse files Browse the repository at this point in the history
fix: update conversations and friends when reconnect
  • Loading branch information
Anduin2017 authored Aug 9, 2019
2 parents 3c62092 + 032a14b commit 8bea6d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/Services/InitService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ export class InitService {
this.ws.onerror = () => this.errorOrClosedFunc();
this.ws.onclose = () => this.errorOrClosedFunc();
this.resend();
if (reconnect) {
this.cacheService.updateConversation();
this.cacheService.updateFriends();
}
if (this.messageService.conversation && reconnect) {
this.messageService.getMessages(0, this.messageService.conversation.id, -1, 15);
}
Expand Down

0 comments on commit 8bea6d0

Please sign in to comment.