Commit a5ed4e5
committed
fix(matrix): respect is_direct: false in isStrictDirectRoom
isStrictDirectRoom returned evidence.strict directly without
considering memberStateFlag. When a 2-person room has
is_direct: false on the membership event, the function still
classified it as a strict DM, causing requireMention to be
silently bypassed for rooms configured under groups[].
Now checks memberStateFlag === false before returning true,
ensuring explicit is_direct: false signals override the
2-member heuristic.
Closes #850171 parent 577e64d commit a5ed4e5
1 file changed
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
128 | 129 | | |
0 commit comments