(asPath?: string)
| 127 | // apart. Until the router is ready asPath is the route template itself, |
| 128 | // which is no thread: peer ids never start with "[". |
| 129 | const isMessageThread = (asPath?: string): boolean => |
| 130 | /^\/messages\/[^/?#[]/.test(withoutLayoutVariantPrefix(asPath ?? '')); |
| 131 | |
| 132 | // Settings and forms are places you finish, not places you browse from: |
| 133 | // the bar leaves so a half-edited page cannot be abandoned by a tab. A |
no test coverage detected