Commit fce3c0c
committed
refactor: simplify message state on deletion
Replaces the `MessageState.deleted` factory with a `switch` expression to set the message state.
This change simplifies how a message's state is updated upon deletion by using `MessageState.hardDeleted` or `MessageState.softDeleted` directly, based on the `hardDelete` boolean.1 parent 02c512d commit fce3c0c
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3799 | 3799 | | |
3800 | 3800 | | |
3801 | 3801 | | |
3802 | | - | |
3803 | | - | |
3804 | | - | |
| 3802 | + | |
| 3803 | + | |
| 3804 | + | |
| 3805 | + | |
3805 | 3806 | | |
3806 | 3807 | | |
3807 | 3808 | | |
| |||
0 commit comments