mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-10-30 16:27:47 +00:00
6c02431719
Met/breached timestamps were only stamped by the sweep tick, so a "first response due soon" warning could go out after the agent had already replied, and report averages measured tick time instead of reply time. Add EvaluateConversationSLA which judges the pending applied SLA right away and always recomputes next_sla_deadline_at, so the conversation package makes one call instead of pairing evaluate with a separate recompute. ApplySLA reuses it for its pre-swap judgement. The sweep loop stays as the breach detector for silent conversations and as the retry net when the sync call fails.