Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

fix(app): close popouts when opening the Plutonium page (#3567)

Hampus4f3f9e2c8214
diff --git a/fluxer_app/src/features/premium/commands/PlutoniumPageCommands.tsx b/fluxer_app/src/features/premium/commands/PlutoniumPageCommands.tsx
index fd1100a2e..d37fbc5a4 100644
--- a/fluxer_app/src/features/premium/commands/PlutoniumPageCommands.tsx
+++ b/fluxer_app/src/features/premium/commands/PlutoniumPageCommands.tsx
@@ -6,9 +6,11 @@ import * as RouterUtils from '@app/features/navigation/utils/RouterUtils';
import {GiftPlutoniumModal} from '@app/features/premium/components/modals/GiftPlutoniumModal';
import * as ModalCommands from '@app/features/ui/commands/ModalCommands';
import {modal} from '@app/features/ui/commands/ModalCommands';
+import * as PopoutCommands from '@app/features/ui/commands/PopoutCommands';
export function openPlutoniumPage(): void {
ModalCommands.popAll();
+ PopoutCommands.closeAll();
RouterUtils.transitionTo(Routes.PLUTONIUM);
}