Adds keyboard shortcut for editing last message sent

This commit is contained in:
Josh Perez 2023-05-11 20:27:19 -04:00 committed by GitHub
parent a1fd4e55ee
commit 216ee67c50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 675 additions and 550 deletions

View file

@ -25,6 +25,7 @@ import { getEmojiSkinTone, getTextFormattingEnabled } from '../selectors/items';
import {
getConversationSelector,
getGroupAdminsSelector,
getLastEditableMessageId,
getSelectedMessageIds,
getTargetedConversationsPanelsCount,
isMissingRequiredProfileSharing,
@ -126,6 +127,8 @@ const mapStateToProps = (state: StateType, props: ExternalProps) => {
const isFormattingSpoilersFlagEnabled =
getIsFormattingSpoilersFlagEnabled(state);
const lastEditableMessageId = getLastEditableMessageId(state);
return {
// Base
conversationId: id,
@ -137,6 +140,7 @@ const mapStateToProps = (state: StateType, props: ExternalProps) => {
isFormattingEnabled,
isFormattingFlagEnabled,
isFormattingSpoilersFlagEnabled,
lastEditableMessageId,
messageCompositionId,
platform,
sendCounter,