mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
bugfix
This commit is contained in:
+4
-7
@@ -1605,8 +1605,7 @@ if (window.CefSharp) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
API.markAllNotificationsAsExpired = function () {
|
API.markAllNotificationsAsExpired = function () {
|
||||||
for (var key in this.notification) {
|
for (var ctx of this.cachedNotifications.values()) {
|
||||||
var ctx = this.cachedNotifications.get(key);
|
|
||||||
if (!ctx.$isExpired) {
|
if (!ctx.$isExpired) {
|
||||||
ctx.$isExpired = true;
|
ctx.$isExpired = true;
|
||||||
}
|
}
|
||||||
@@ -1614,8 +1613,7 @@ if (window.CefSharp) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
API.checkExpiredNotifcations = function () {
|
API.checkExpiredNotifcations = function () {
|
||||||
for (var key in this.notification) {
|
for (var ctx of this.cachedNotifications.values()) {
|
||||||
var ctx = this.cachedNotifications.get(key);
|
|
||||||
if (ctx.$isExpired &&
|
if (ctx.$isExpired &&
|
||||||
!ctx.$isExpired) {
|
!ctx.$isExpired) {
|
||||||
ctx.$isExpired = true;
|
ctx.$isExpired = true;
|
||||||
@@ -1784,12 +1782,11 @@ if (window.CefSharp) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
API.getFriendRequest = function (userId) {
|
API.getFriendRequest = function (userId) {
|
||||||
for (var key in this.notification) {
|
for (var ctx of this.cachedNotifications.values()) {
|
||||||
var ctx = this.cachedNotifications.get(key);
|
|
||||||
if (ctx.type === 'friendRequest' &&
|
if (ctx.type === 'friendRequest' &&
|
||||||
ctx.senderUserId === userId &&
|
ctx.senderUserId === userId &&
|
||||||
!ctx.$isExpired) {
|
!ctx.$isExpired) {
|
||||||
return key;
|
return ctx.id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
|
|||||||
Reference in New Issue
Block a user