Multi-select forwarding and deleting

This commit is contained in:
Jamie Kyle 2023-03-20 15:23:53 -07:00 committed by GitHub
parent d986356eea
commit 1d549a9991
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
82 changed files with 2607 additions and 991 deletions

View file

@ -88,6 +88,7 @@ export type PropsActionsType = {
destroyMessages: (conversationId: string) => void;
onArchive: (conversationId: string) => void;
onMarkUnread: (conversationId: string) => void;
toggleSelectMode: (on: boolean) => void;
onMoveToInbox: (conversationId: string) => void;
onOutgoingAudioCallInConversation: (conversationId: string) => void;
onOutgoingVideoCallInConversation: (conversationId: string) => void;
@ -350,6 +351,7 @@ export class ConversationHeader extends React.Component<PropsType, StateType> {
muteExpiresAt,
onArchive,
onMarkUnread,
toggleSelectMode,
onMoveToInbox,
pushPanelForConversation,
setDisappearingMessages,
@ -505,6 +507,13 @@ export class ConversationHeader extends React.Component<PropsType, StateType> {
{i18n('markUnread')}
</MenuItem>
) : null}
<MenuItem
onClick={() => {
toggleSelectMode(true);
}}
>
{i18n('icu:ConversationHeader__menu__selectMessages')}
</MenuItem>
{isArchived ? (
<MenuItem onClick={() => onMoveToInbox(id)}>
{i18n('moveConversationToInbox')}