mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
ignore self invites
This commit is contained in:
@@ -3463,11 +3463,13 @@ import gameLogService from './service/gamelog.js'
|
||||
var { data } = this.notificationTable;
|
||||
for (i = 0; i < data.length; i++) {
|
||||
var ctx = data[i];
|
||||
arr.push({
|
||||
...ctx,
|
||||
isFriend: this.friends.has(ctx.senderUserId),
|
||||
isFavorite: API.cachedFavoritesByObjectId.has(ctx.senderUserId)
|
||||
});
|
||||
if (ctx.senderUserId !== API.currentUser.id) {
|
||||
arr.push({
|
||||
...ctx,
|
||||
isFriend: this.friends.has(ctx.senderUserId),
|
||||
isFavorite: API.cachedFavoritesByObjectId.has(ctx.senderUserId)
|
||||
});
|
||||
}
|
||||
}
|
||||
arr.sort(function (a, b) {
|
||||
if (a.created_at < b.created_at) {
|
||||
|
||||
Reference in New Issue
Block a user