mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-20 23:33:50 +02:00
Lobby status change event, fix moderation in player list
This commit is contained in:
@@ -573,22 +573,21 @@ Vue.component('marquee-text', MarqueeText);
|
||||
};
|
||||
|
||||
$app.methods.addEntryHudFeed = function (json) {
|
||||
var {displayName, text, color, avatar, inCache} = JSON.parse(json);
|
||||
var data = JSON.parse(json);
|
||||
var combo = 1;
|
||||
this.hudFeed.forEach((item) => {
|
||||
if (item.displayName === displayName && item.text === text) {
|
||||
if (
|
||||
item.displayName === data.displayName &&
|
||||
item.text === data.text
|
||||
) {
|
||||
combo = item.combo + 1;
|
||||
removeFromArray(this.hudFeed, item);
|
||||
}
|
||||
});
|
||||
this.hudFeed.unshift({
|
||||
time: Date.now(),
|
||||
displayName,
|
||||
text,
|
||||
combo,
|
||||
color,
|
||||
avatar,
|
||||
inCache
|
||||
...data
|
||||
});
|
||||
this.cleanHudFeed();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user