Keep reaction poppers visible at all times

This commit is contained in:
Evan Hahn 2021-08-20 14:36:27 -05:00 committed by GitHub
parent f11c366f53
commit 70d059beeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 94 additions and 14 deletions

View file

@ -1,7 +1,7 @@
// Copyright 2019-2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
import React, { RefObject } from 'react';
import { omit } from 'lodash';
import { LocalizerType, ThemeType } from '../../types/Util';
@ -153,6 +153,7 @@ export type TimelineItemType =
| VerificationNotificationType;
type PropsLocalType = {
containerElementRef: RefObject<HTMLElement>;
conversationId: string;
item?: TimelineItemType;
id: string;
@ -179,6 +180,7 @@ export type PropsType = PropsLocalType &
export class TimelineItem extends React.PureComponent<PropsType> {
public render(): JSX.Element | null {
const {
containerElementRef,
conversationId,
id,
isSelected,
@ -204,6 +206,7 @@ export class TimelineItem extends React.PureComponent<PropsType> {
<Message
{...omit(this.props, ['item'])}
{...item.data}
containerElementRef={containerElementRef}
i18n={i18n}
theme={theme}
renderingContext="conversation/TimelineItem"