mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
fix: playerlist usertimer reset when befriending a user (#837)
This commit is contained in:
@@ -255,10 +255,14 @@ export function applyUser(json) {
|
|||||||
}
|
}
|
||||||
if (hasPropChanged) {
|
if (hasPropChanged) {
|
||||||
if (changedProps.location && changedProps.location[0] !== 'traveling') {
|
if (changedProps.location && changedProps.location[0] !== 'traveling') {
|
||||||
|
if (playerListRef) {
|
||||||
|
ref.$location_at = playerListRef.joinTime;
|
||||||
|
} else {
|
||||||
const ts = Date.now();
|
const ts = Date.now();
|
||||||
changedProps.location.push(ts - ref.$location_at);
|
changedProps.location.push(ts - ref.$location_at);
|
||||||
ref.$location_at = ts;
|
ref.$location_at = ts;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
handleUserUpdate(ref, changedProps);
|
handleUserUpdate(ref, changedProps);
|
||||||
if (AppDebug.debugUserDiff) {
|
if (AppDebug.debugUserDiff) {
|
||||||
delete changedProps.last_login;
|
delete changedProps.last_login;
|
||||||
|
|||||||
Reference in New Issue
Block a user