Private
Public Access
fix(mma): process global mma_state_update when no track in payload
This commit is contained in:
@@ -467,7 +467,7 @@ def _handle_mma_state_update(controller: 'AppController', task: dict):
|
|||||||
if track_data and controller.active_track and track_data.get("id") == controller.active_track.id:
|
if track_data and controller.active_track and track_data.get("id") == controller.active_track.id:
|
||||||
is_active_track = True
|
is_active_track = True
|
||||||
|
|
||||||
if is_active_track or not controller.active_track:
|
if is_active_track or not controller.active_track or not track_data:
|
||||||
controller._mma_status = p.get("status", controller._mma_status)
|
controller._mma_status = p.get("status", controller._mma_status)
|
||||||
|
|
||||||
old_tier = controller.active_tier
|
old_tier = controller.active_tier
|
||||||
@@ -496,7 +496,7 @@ def _handle_mma_state_update(controller: 'AppController', task: dict):
|
|||||||
else:
|
else:
|
||||||
controller.mma_tier_usage[tier] = data
|
controller.mma_tier_usage[tier] = data
|
||||||
|
|
||||||
if is_active_track or not controller.active_track:
|
if is_active_track or not controller.active_track or not track_data:
|
||||||
controller.active_tickets = p.get("tickets", [])
|
controller.active_tickets = p.get("tickets", [])
|
||||||
if track_data:
|
if track_data:
|
||||||
tickets = []
|
tickets = []
|
||||||
|
|||||||
Reference in New Issue
Block a user