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) {
|
private func handleScenePhaseChange(from oldPhase: ScenePhase, to newPhase: ScenePhase) {
|
||||||
// When app returns to active state from background, force reconnect and refresh
|
// When app returns to active state from background, force reconnect and refresh
|
||||||
if oldPhase == .background && newPhase == .active {
|
if newPhase == .active {
|
||||||
Task {
|
Task {
|
||||||
// Force WebSocket reconnection
|
// Force WebSocket reconnection
|
||||||
websocketRestartTrigger += 1
|
websocketRestartTrigger += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user