Added message editing after the user clicks Save or presses Enter.
Details
Details
- Reviewers
michal inka - Commits
- rCOMMd1b6e4104c42: [web] Added message editing
- selected message to edit, made changes, pressed Save -> the message was successfully edited,
- selected message to edit, pressed save without edits -> exited edit mode without sending edit message
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
web/chat/edit-message-provider.js | ||
---|---|---|
70–72 ↗ | (On Diff #26642) | You are right. We use it only inside the edit modal. We can probably use here invariant. |
web/chat/edit-text-message.react.js | ||
62–64 ↗ | (On Diff #26642) | It is here to prevent typing warnings. If the user leaves an empty message and wants to save it, we clear the edit modal (lines 50 and 59) anyway. Probably, I could use here an invariant as well. Should I change it? |