Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Mark the threads icon as unread due to activity. #9739

Closed
wants to merge 4 commits into from

Conversation

clokep
Copy link
Member

@clokep clokep commented Dec 12, 2022

Follow-on to #9723 & #9738 to properly show bold status in the threads icon:

image

Checklist

  • Tests written for new code (and old code if feasible)
  • Linter and other CI checks pass
  • Sign-off given on the changes (see CONTRIBUTING.md)

Here's what your changelog entry will look like:

🐛 Bug Fixes

  • Mark the threads icon as unread due to activity. (#9739).

@clokep
Copy link
Member Author

clokep commented Dec 12, 2022

Together with #9738 this fixes element-hq/element-web#23907; should likely use the same changelog.

@clokep clokep self-assigned this Dec 12, 2022
@clokep clokep added the T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems label Dec 12, 2022
Comment on lines +99 to +101
// Thread activity should appear on the icon.
mkThread({ room, client, authorId: client.getUserId()!, participantUserIds: ["@alice:example.org"] });
expect(isIndicatorOfType(getComponent(room), "bold")).toBe(true);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assertion is failing -- from adding some debug logs it seems like the thread is getting created after the assertion. I'm not sure what's going on.

@clokep
Copy link
Member Author

clokep commented Dec 13, 2022

Going to close this and rebase it on a reworked #9723.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant