Add unblocked timeline event

This commit is contained in:
Jamie Kyle 2024-04-12 10:07:57 -07:00 committed by GitHub
parent 92eb036196
commit ad8020848f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 333 additions and 10 deletions

View file

@ -124,6 +124,7 @@ type PropsHousekeepingType = {
containerWidthBreakpoint: WidthBreakpoint;
conversationId: string;
isBlocked: boolean;
isGroup: boolean;
isOldestTimelineItem: boolean;
messageId: string;
nextMessageId: undefined | string;
@ -804,6 +805,7 @@ export class Timeline extends React.Component<
acknowledgeGroupMemberNameCollisions,
clearInvitedServiceIdsForNewlyCreatedGroup,
closeContactSpoofingReview,
conversationType,
hasContactSpoofingReview,
getPreferredBadge,
getTimestampForMessage,
@ -847,6 +849,7 @@ export class Timeline extends React.Component<
return null;
}
const isGroup = conversationType === 'group';
const areThereAnyMessages = items.length > 0;
const areAnyMessagesUnread = Boolean(unreadCount);
const areAnyMessagesBelowCurrentPosition =
@ -956,6 +959,7 @@ export class Timeline extends React.Component<
containerWidthBreakpoint: widthBreakpoint,
conversationId: id,
isBlocked,
isGroup,
isOldestTimelineItem: haveOldest && itemIndex === 0,
messageId,
nextMessageId,