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

Commit fddbc42

Browse files
authored
Fix issue with thread notification state ignoring initial events (#8417)
1 parent 565488a commit fddbc42

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/views/rooms/EventTile.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -991,9 +991,7 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
991991
mx_EventTile_12hr: this.props.isTwelveHour,
992992
// Note: we keep the `sending` state class for tests, not for our styles
993993
mx_EventTile_sending: !isEditing && isSending,
994-
mx_EventTile_highlight: (this.context.timelineRenderingType === TimelineRenderingType.Notification
995-
? false
996-
: this.shouldHighlight()),
994+
mx_EventTile_highlight: this.shouldHighlight(),
997995
mx_EventTile_selected: this.props.isSelectedEvent || this.state.contextMenu,
998996
mx_EventTile_continuation: isContinuation || eventType === EventType.CallInvite,
999997
mx_EventTile_last: this.props.last,

src/stores/notifications/ThreadNotificationState.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ export class ThreadNotificationState extends NotificationState implements IDestr
3131
super();
3232
this.thread.on(ThreadEvent.NewReply, this.handleNewThreadReply);
3333
this.thread.on(ThreadEvent.ViewThread, this.resetThreadNotification);
34+
if (this.thread.replyToEvent) {
35+
// Process the current tip event
36+
this.handleNewThreadReply(this.thread, this.thread.replyToEvent);
37+
}
3438
}
3539

3640
public destroy(): void {

0 commit comments

Comments
 (0)