Created types for new 'edit_message' message type.
Details
- Reviewers
inka michal ginsu - Commits
- rCOMM021f09008cb8: [lib] Create types for message editing
Checked if the app still works.
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
Can you also updates lib/types/messages.js? EDIT ah I see these are in the next diff
In general I personally find it better to introduce types along with code that actually uses them, but many people on the team do what you did here and introduce them in a separate diff. It just makes it much harder to test... eg. your Test Plan doesn't actually test any of the types at all, which means it's quite a poor test plan.
Separately, I think it might be good to add @ginsu to your list of reviewers for this work, given how recently he touched reactions
Sure, I didn't know whether I should divide it or not. Next time I will do it in one diff.
Can you clarify in what scenarios the id can be null? Usually we only see that for types that also have localID
You are right. I couldn't find such scenario. I also tested the app and it still works as expected. Updating the diff.
lib/types/messages/edit.js | ||
---|---|---|
16 | Why isn't this readonly? |