Switched ForwardMessageModal to use ListTile

This commit is contained in:
Alvaro 2023-01-25 16:51:08 -07:00 committed by GitHub
parent 257f5e1231
commit d64e0b65c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 528 additions and 239 deletions

View file

@ -38,6 +38,7 @@ import {
shouldNeverBeCalled,
asyncShouldNeverBeCalled,
} from '../util/shouldNeverBeCalled';
import { Emojify } from './conversation/Emojify';
export type DataPropsType = {
attachments?: ReadonlyArray<AttachmentType>;
@ -408,8 +409,13 @@ export function ForwardMessageModal({
)}
<div className="module-ForwardMessageModal__footer">
<div>
{Boolean(selectedContacts.length) &&
selectedContacts.map(contact => contact.title).join(', ')}
{Boolean(selectedContacts.length) && (
<Emojify
text={selectedContacts
.map(contact => contact.title)
.join(', ')}
/>
)}
</div>
<div>
{isEditingMessage || !isMessageEditable ? (