Files
Spark/core
Marcelo H. Terres 9722494adb SPARK-2410: Correct the bookmark button state in the room browser
Selecting a room in the conference room browser labelled the bookmark button
with the opposite of the room's actual state: an unbookmarked room offered
"Remove bookmark" with the delete icon, and a bookmarked one offered to
bookmark it again. Clicking still did the right thing, so the button simply
described the wrong action.

addBookmarkUI() means "the room is bookmarked, so offer to remove it" — which
is how bookmarkRoom() already calls it, passing the state that results from
the toggle it has just performed. Only the selection listener negated the
value. Drop the negation there, and pass false rather than true when nothing
is selected, so the disabled button rests on "Bookmark room" instead of
"Remove bookmark".

Rename the parameter to isBookmarked and correct its javadoc, which described
the inverted meaning.
2026-08-17 20:26:15 +03:00
..