From fd794a856426ded043ea0175db82fced3b72f0e4 Mon Sep 17 00:00:00 2001 From: pypy Date: Sun, 19 Apr 2020 06:48:59 +0900 Subject: [PATCH] bugfix --- html/src/app.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/html/src/app.js b/html/src/app.js index b6b829c9..c7cf3568 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -1385,6 +1385,11 @@ CefSharp.BindObjectAsync( this.isFriendsLoading = false; }); + API.$on('USER', function (args) { + this.friends200.add(args.ref.id); + this.friends404.delete(args.ref.id); + }); + API.$on('FRIEND:LIST', function (args) { for (var json of args.json) { this.$emit('USER', { @@ -1393,8 +1398,6 @@ CefSharp.BindObjectAsync( userId: json.id } }); - this.friends200.add(json.id); - this.friends404.delete(json.id); } });