Skip to content

Slack's show-only-unreads setting no longer hides channels under All - #980

Open
skullvalanche wants to merge 1 commit into
TinyComms:mainfrom
skullvalanche:skull/slack-unreads-all
Open

skullvalanche wants to merge 1 commit into
TinyComms:mainfrom
skullvalanche:skull/slack-unreads-all

Conversation

@skullvalanche

Copy link
Copy Markdown

What changed and why

Slack's own "show only unreads" setting on a sidebar section hid that section's read channels even under the All segment, so a person who had turned it on in Slack could not find a read channel in tinyclient. The Unread segment is already the one filter for this, so the section setting is no longer applied and All lists every channel.

Type

  • feature
  • fix
  • perf
  • refactor
  • chore
  • docs

Platforms

  • windows
  • macos
  • linux
  • android
  • ios

Proof

Scenario: e2e/scenarios/slack-unreads-all

It starts the build's tinyclient with TINYCLIENT_PROVE=slack-unreads-all. That build lists a Slack section set to show only unreads and exits 0 only when its read channel is still a row. A build from before the change ignores the variable and opens the window, so the driver fails on the base.

Unit test: slack_sorts_its_sections_folds_quiet_channels_and_keeps_apps_and_threads_apart in crates/tinyclient/src/gui/sidebar/tree.rs now expects the read channel under All. It fails with the old lines put back and passes with the fix.

Lab run:

Compatibility

Client only. Nothing changes on the wire, in the protocol or on the server. The setting is still read and stored; the sidebar just no longer filters by it.

Risk and rollback

A Slack section with many read channels now lists all of them under All, which is longer than before. Revert the commit to undo it.

Release note

Slack channels are no longer hidden under All when show only unreads is on in Slack.

Test notes

cargo test --workspace on this branch passed except two mediad voice tests, a_priority_speaker_ducks_everyone_else_by_twelve_db and a_picture_on_a_voice_call_is_not_refused_for_being_voice_only. The first passes when run alone. The second times out waiting for mediad. This change touches nothing under mediad or any call code, so both look like load or environment problems. I did not run them on main.

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.

1 participant