You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Merge pull request #3183 from matrix-org/t3chguy/editing_while_replying
Don't allow editing via up-arrow when Replying
This commit is contained in:
@@ -1143,7 +1143,7 @@ export default class MessageComposerInput extends React.Component {
|
|||||||
|
|
||||||
const editingEnabled = SettingsStore.isFeatureEnabled("feature_message_editing");
|
const editingEnabled = SettingsStore.isFeatureEnabled("feature_message_editing");
|
||||||
const shouldSelectHistory = (editingEnabled && e.altKey) || !editingEnabled;
|
const shouldSelectHistory = (editingEnabled && e.altKey) || !editingEnabled;
|
||||||
const shouldEditLastMessage = editingEnabled && !e.altKey && up;
|
const shouldEditLastMessage = editingEnabled && !e.altKey && up && !RoomViewStore.getQuotingEvent();
|
||||||
|
|
||||||
if (shouldSelectHistory) {
|
if (shouldSelectHistory) {
|
||||||
// Try select composer history
|
// Try select composer history
|
||||||
|
|||||||
Reference in New Issue
Block a user