This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/components/views/right_panel
test/components/views/right_panel Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ export default class RoomHeaderButtons extends HeaderButtons<IProps> {
301301 title = { _t ( "Threads" ) }
302302 onClick = { this . onThreadsPanelClicked }
303303 isHighlighted = { this . isPhase ( RoomHeaderButtons . THREAD_PHASES ) }
304- isUnread = { this . state . threadNotificationColor > 0 }
304+ isUnread = { this . state . threadNotificationColor > NotificationColor . None }
305305 >
306306 < UnreadIndicator color = { this . state . threadNotificationColor } />
307307 </ HeaderButton > ,
Original file line number Diff line number Diff line change @@ -70,8 +70,10 @@ describe("RoomHeaderButtons-test.tsx", function () {
7070
7171 it ( "thread notification does change the thread button" , ( ) => {
7272 const { container } = getComponent ( room ) ;
73+ expect ( getThreadButton ( container ) ! . className . includes ( "mx_RightPanel_headerButton_unread" ) ) . toBeFalsy ( ) ;
7374
7475 room . setThreadUnreadNotificationCount ( "$123" , NotificationCountType . Total , 1 ) ;
76+ expect ( getThreadButton ( container ) ! . className . includes ( "mx_RightPanel_headerButton_unread" ) ) . toBeTruthy ( ) ;
7577 expect ( isIndicatorOfType ( container , "gray" ) ) . toBe ( true ) ;
7678
7779 room . setThreadUnreadNotificationCount ( "$123" , NotificationCountType . Highlight , 1 ) ;
You can’t perform that action at this time.
0 commit comments