sirikata/sirikata — Issue #488: Initial value of query not properly propagated to Emerson
Author: ewencp
Created: 2012-02-01 05:07:45+00:00
State: open

Emerson has it's own copy of the query string in JSPresenceStruct because we need it there to support restoring from persistent storage. Since the query is the one "non-public" core property of objects, it's the only thing not managed by presence properties. The result of this is that currently the query specified originally (e.g. when loading from a CSV file) is not properly reflected by the JSPresenceStruct. A simple test of this is to load up the default scene and try executing

```
system.print(system.self.query)
```

which is empty, but should have something in it for the avatar. We already have related fields in JSPresenceStruct such as mSuspendedVelocity. We probably just need to make the query string behave similarly: used upon restore, otherwise ignored in favor of getting the value directly from the HostedObject.