mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 12:46:46 +00:00
feat(GODT-2353): show popup only after 3.0.16
This commit is contained in:
@ -96,9 +96,11 @@ func (s *Service) GuiReady(ctx context.Context, _ *emptypb.Empty) (*GuiReadyResp
|
||||
|
||||
s.initializationDone.Do(s.initializing.Done)
|
||||
|
||||
// Splash screen should be displayed only to users who start v3 for the first time after upgrading from v2.
|
||||
// Splash screen should be displayed only to users who start v3.0.16 or later for the first time after upgrading from v2.
|
||||
return &GuiReadyResponse{
|
||||
ShowSplashScreen: (!s.bridge.GetFirstStart()) && s.bridge.GetLastVersion().LessThan(semver.MustParse("3.0.0")),
|
||||
ShowSplashScreen: (!s.bridge.GetFirstStart()) &&
|
||||
s.bridge.GetLastVersion().LessThan(semver.MustParse("3.0.0")) &&
|
||||
s.bridge.GetCurrentVersion().GreaterThan(semver.MustParse("3.0.15")),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user