renaming friend_ to $isFriend

This commit is contained in:
pypy
2020-01-11 22:25:57 +09:00
parent ba0465f4a0
commit e48d2383a0
+3 -3
View File
@@ -1244,7 +1244,7 @@ if (window.CefSharp) {
if (user === undefined) { if (user === undefined) {
return; return;
} }
user.friend_ = true; user.$isFriend = true;
delete this.friend404[json.id]; delete this.friend404[json.id];
}); });
}); });
@@ -1254,7 +1254,7 @@ if (window.CefSharp) {
return this.currentUser.friends.every((id) => { return this.currentUser.friends.every((id) => {
var user = this.cachedUsers.get(id); var user = this.cachedUsers.get(id);
if (user && if (user &&
user.friend_) { user.$isFriend) {
return true; return true;
} }
// NOTE: NaN이면 false라서 괜찮음 // NOTE: NaN이면 false라서 괜찮음
@@ -1264,7 +1264,7 @@ if (window.CefSharp) {
this.currentUser.friends.forEach((id) => { this.currentUser.friends.forEach((id) => {
var ctx = this.cachedUsers.get(id); var ctx = this.cachedUsers.get(id);
if (!(ctx && if (!(ctx &&
ctx.friend_)) { ctx.$isFriend)) {
var hit = Number(this.friend404[id]) || 0; var hit = Number(this.friend404[id]) || 0;
if (hit < 2) { if (hit < 2) {
this.friend404[id] = hit + 1; this.friend404[id] = hit + 1;