Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add edit-button to context menu behind toggle #2725

Closed
wants to merge 1 commit into from

Conversation

pik
Copy link

@pik pik commented Dec 9, 2016

PR to add an editButton (hidden by default) to the riot-web client TextualBody should receive the edit message and render a MessageEditorInput on action dispatch.

Not sure where config toggles is/are riot-web so I should update the editEnabled property to point to that, potentially it should be received from the server? That way it would be possible to run an experimental synapse with edit functionality and have a client with functional edit-mode without running a fork of vector-web.

@matrixbot
Copy link

Can one of the admins verify this patch?

@@ -37,6 +37,9 @@ module.exports = React.createClass({

/* callback called when the menu is dismissed */
onFinished: React.PropTypes.func,

/* Edit Mesage functionality is enabled */
editEnabled: false,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be updated to a toggle.

@@ -37,6 +37,9 @@ module.exports = React.createClass({

/* callback called when the menu is dismissed */
onFinished: React.PropTypes.func,

/* Edit Mesage functionality is enabled */
editEnabled: false,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be updated to a toggle.

@ara4n
Copy link
Member

ara4n commented Dec 22, 2016

sorry for the delay on this...

this looks very promising indeed. we can't merge it until the js-sdk stuff appears, of course. it's going to be sufficiently invasive that I'd hide it behind a Labs flag until we're happy that it works though!

@MightyCreak
Copy link

Isn't "Redact" supposed to be the button to edit a message?

I'm not familiar with the term "redact", my en-fr dictionary says that it the action to write/edit/modify.

Personally I would prefer to have an "Edit" and "Delete" buttons. It's far more simple to understand than "Redact" and "Edit".

@gonight
Copy link

gonight commented Jan 8, 2017

@MightyCreak 'Redact' is a semi-undocumented feature that deletes a message's content. In the client, this makes the message disappear. My understanding is that the message ID is retained in database while the actual content is removed.

I would argue that for accuracy's sake, 'redact' is more appropriate in english than 'delete'. What is actually happen when the 'redact' button is clicked is closer to marking a document out with a black marker, than to shredding the entire document. I do agree calling it 'delete' would be a little clearer from a user perspective. I would maybe suggest that this comes down to a question of how much we want to black-box the actuality functionality of what's happening.

@ara4n
Copy link
Member

ara4n commented May 29, 2019

we now have edits via matrix-org/matrix-react-sdk#2952 and similar. thanks @pik for being 3 years ahead of the curve - i'm sorry we couldn't merge this at the time :(

@ara4n ara4n closed this May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants