Commit 2d49fd6
committed
fix: "Reply in direct message" should always appear if you have create-d permission
When PR RocketChat#36217 refactored useReplyInDMAction, it introduced a regression.
We previously checked for `!canCreateDM` (with a bang!) but that PR accidentally
negated it to `canCreateDM`.
Additionally, the conditional that includes `canCreateDM` was duplicated.
DRY it out.1 parent d7c97ed commit 2d49fd6
File tree
1 file changed
+2
-2
lines changed- apps/meteor/client/components/message/toolbar
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments