Added possibility to label the messages to display ‘Edited' label in next diffs.
Details
- Run the app.
- Added the label to every message.
- Checked if the labels are displayed correctly both with text messages and with images.
- Checked if Reactions/Threads are also correctly positioned next to the label.
- Checked if labels in a few messages in a row do not take too much space.
- Checked displaying on both the left and right side of the chat.
- Checked displaying on both iOS and Android.
- Checked displaying on both dark and light mode.
Screenshots (iOS / Android):
- Light mode:
- Dark mode:
- Few messages in a row:
- Image:
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
Will this affect the height of the item? Have you made the necessary changes to the height determination code (textMessageItemHeight)?
Done in https://phab.comm.dev/D7066, because that is where it was used for the first time.
Just nits, but requesting changes because some of them are non-obvious and I want to confirm it's implemented right before you land :)
native/chat/inline-engagement.react.js | ||
---|---|---|
130–132 | We can move this below the !label check to avoid unnecessary computation | |
142 | Use "De Morgan's law" | |
172 | Please always avoid inline logic from within JSX. JSX should be a "leaf node" in the AST |
You can simplify the code by avoiding reusing the variables and using auto