mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
Add friend log to shared feed
This commit is contained in:
@@ -3494,6 +3494,19 @@ speechSynthesis.getVoices();
|
||||
});
|
||||
}
|
||||
}
|
||||
// TrustLevel, Friend, FriendRequest, Unfriend, DisplayName
|
||||
var { data } = this.friendLogTable;
|
||||
var j = this.friendLogTable.data.length;
|
||||
for (i = j - 1; i >= j - 6; i--) {
|
||||
var ctx = data[i];
|
||||
if (ctx.type !== 'FriendRequest') {
|
||||
arr.push({
|
||||
...ctx,
|
||||
isFriend: this.friends.has(ctx.userId),
|
||||
isFavorite: API.cachedFavoritesByObjectId.has(ctx.userId)
|
||||
});
|
||||
}
|
||||
}
|
||||
arr.sort(function (a, b) {
|
||||
if (a.created_at < b.created_at) {
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user