Hosted rooms' instance IDs name their owner: <owner>-<2100000000+n>
CI / test (push) Successful in 58s
CI / test (push) Successful in 58s
The client takes a room's owner from the instance ID's first part; with 2100000000 there, the owner couldn't decorate their hosted room (putting furniture on went to their home room instead). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
f65f36c1ea
commit
43183ec7ee
7 files changed
+17
-13
No files matched your search
@@ -31,7 +31,9 @@ export const maxPlacement = 200;
|
||||
export const sceneHash = (roomPid: number, contents: SceneItem[]) =>
|
||||
createHash("sha256").update(JSON.stringify([roomPid, contents])).digest("hex");
|
||||
|
||||
export const instanceId = (n: number) => `${hostedBase}-${n}`;
|
||||
// "<owner's IMVU ID>-<hostedBase + n>": the client takes a room's owner from the first part (so the owner can
|
||||
// decorate it), and IMVU's own room numbers are far below hostedBase.
|
||||
export const instanceId = (owner: number, n: number) => `${owner}-${hostedBase + n}`;
|
||||
export const chatId = (n: number) => hostedBase + n;
|
||||
|
||||
// eslint-disable-next-line no-control-regex
|
||||
|
||||
Reference in new issue
Block a user