unconditional active scene phase change
This commit is contained in:
@@ -56,7 +56,7 @@ extension ContentView
|
||||
{
|
||||
private func handleScenePhaseChange(from oldPhase: ScenePhase, to newPhase: ScenePhase) {
|
||||
// When app returns to active state from background, force reconnect and refresh
|
||||
if oldPhase == .background && newPhase == .active {
|
||||
if newPhase == .active {
|
||||
Task {
|
||||
// Force WebSocket reconnection
|
||||
websocketRestartTrigger += 1
|
||||
|
||||
Reference in New Issue
Block a user