5181 activity dropdown popup can appear when viewing chat details page (#5188)
* fix: don't allow showing of activity tutorial overlay outside of chat page * remove debug print
This commit is contained in:
parent
c3c9788962
commit
dfad6a8f24
1 changed files with 3 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import 'package:go_router/go_router.dart';
|
||||
import 'package:matrix/matrix.dart';
|
||||
|
||||
import 'package:fluffychat/config/app_config.dart';
|
||||
|
|
@ -12,7 +13,8 @@ extension ActivityMenuLogic on ChatController {
|
|||
if (AppConfig.showedActivityMenu ||
|
||||
InstructionsEnum.activityStatsMenu.isToggledOff ||
|
||||
MatrixState.pAnyState.isOverlayOpen(RegExp(r"^word-zoom-card-.*$")) ||
|
||||
timeline == null) {
|
||||
timeline == null ||
|
||||
GoRouterState.of(context).fullPath?.endsWith(':roomid') != true) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue