Keep reaction poppers visible at all times
This commit is contained in:
parent
f11c366f53
commit
70d059beeb
12 changed files with 94 additions and 14 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue