Commit 7444da4
committed
Fix hasChatId to not depend on feature flag state
The hasChatId function in DuckChatContextualViewModel was delegating to
duckChat.extractChatId(), which internally calls isDuckChatUrl(). That
method returns false when isDuckChatFeatureEnabled is false.
This created an unintended feature-flag dependency for UI state logic
(showFullscreen) and chat context storage decisions. When the feature
flag is off, hasChatId would incorrectly return false for valid URLs
with a chatID parameter.
Changed hasChatId to perform a direct URL parse without feature flag
dependency, restoring the original behavior.1 parent 78df013 commit 7444da4
File tree
1 file changed
+7
-2
lines changed- duckchat/duckchat-impl/src/main/java/com/duckduckgo/duckchat/impl/contextual
1 file changed
+7
-2
lines changedLines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | | - | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
529 | 530 | | |
530 | 531 | | |
531 | 532 | | |
532 | | - | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
533 | 538 | | |
534 | 539 | | |
535 | 540 | | |
| |||
0 commit comments