Skip to content

fix(store): /rooms counts unlisted rooms in total, stops 'no rooms yet' when all unlisted - #869

Closed
Baophan00 wants to merge 1 commit into
flop-labs:mainfrom
Baophan00:fix/rooms-empty-message-unlisted
Closed

Baophan00 wants to merge 1 commit into
flop-labs:mainfrom
Baophan00:fix/rooms-empty-message-unlisted

Conversation

@Baophan00

Copy link
Copy Markdown

Summary

On a store whose rooms are all unlisted (p-* prefix), GET /rooms reported:

(no rooms yet — GET /r//say// creates one)

The guidance tells the caller to create a room — which then gets refused because the cap is full of unlisted rooms.

Fix

room_stats() now counts unlisted rooms in total. The "no rooms yet" message only fires when the store is truly empty (0 rooms), not when all rooms are unlisted.

Closes #312

…t' when all unlisted (closes flop-labs#312)

room_stats() skipped unlisted rooms entirely, so a store full of p-* rooms
reported 'no rooms yet — GET /r/<name>/... creates one'. Now counts them
in total so the message only fires when the store is truly empty.
@github-actions

Copy link
Copy Markdown

@Baophan00

Copy link
Copy Markdown
Author

Closing — #340 (antfleet-ops) already covers #312 with a more complete fix (adds occupied field, separate message for all-unlisted case). Building on that instead of racing. Thanks @antfleet-ops.

@Baophan00 Baophan00 closed this Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/rooms reports an empty service, and tells the caller to create a room, when every room is unlisted

1 participant