Skip to content

RoomStateManager.race will always return false. #221

@ThePhar

Description

@ThePhar

I have read the above disclaimer and I am submitting a new bug report and have verified no other duplicate reports exist in the Issues or Discussions tabs.

  • Confirm

Describe the Issue

As described in the title, this field is never updated on connection.

Likely this is to remain as is until 2.1's "manager ready system" is implemented, so that an event does not need to be created as the client would need to fetch the race mode from data storage, which allows a time gap where a client has connected, but race mode is still being fetched, meaning the property is incorrect. The ready system would prevent this.

It is marked as experimental at least, so a jsdoc should probably be created for 2.0.x, to inform that this will always return false until 2.1 and if needed, should be fetched manually via DataStorageManager.

Reproduction Steps

n/a

Expected Behavior

Expected to match server's race mode after connection.

Library Version

2.0.4

Environment / Runtime

Any environments

Project Repository

No response

Additional Notes, Screenshots, or Files

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    is: bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions