mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
renaming friend_ to $isFriend
This commit is contained in:
+3
-3
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user