mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
friend log notification fixes
This commit is contained in:
+1
-1
@@ -3497,7 +3497,7 @@ speechSynthesis.getVoices();
|
|||||||
// TrustLevel, Friend, FriendRequest, Unfriend, DisplayName
|
// TrustLevel, Friend, FriendRequest, Unfriend, DisplayName
|
||||||
var { data } = this.friendLogTable;
|
var { data } = this.friendLogTable;
|
||||||
var j = this.friendLogTable.data.length;
|
var j = this.friendLogTable.data.length;
|
||||||
for (i = j - 1; i >= j - 6; i--) {
|
for (i = j - 1; i >= j - ((j > 10) ? 10 : j); i--) {
|
||||||
var ctx = data[i];
|
var ctx = data[i];
|
||||||
if (ctx.type !== 'FriendRequest') {
|
if (ctx.type !== 'FriendRequest') {
|
||||||
arr.push({
|
arr.push({
|
||||||
|
|||||||
@@ -687,6 +687,12 @@ speechSynthesis.getVoices();
|
|||||||
map[feed.senderUsername] < feed.created_at) {
|
map[feed.senderUsername] < feed.created_at) {
|
||||||
map[feed.senderUsername] = feed.created_at;
|
map[feed.senderUsername] = feed.created_at;
|
||||||
}
|
}
|
||||||
|
} else if (feed.type === 'Friend' ||
|
||||||
|
feed.type === 'Unfriend') {
|
||||||
|
if (!map[feed.displayName] ||
|
||||||
|
map[feed.displayName] < feed.created_at) {
|
||||||
|
map[feed.displayName] = feed.created_at;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// disable notification on busy
|
// disable notification on busy
|
||||||
|
|||||||
Reference in New Issue
Block a user