ArchiveTask persists the current actor-scoped triage state as archived for the task's latest known activity snapshot.
(ctx context.Context, id string, actor ActorContext)
| 979 | // ArchiveTask persists the current actor-scoped triage state as archived for |
| 980 | // the task's latest known activity snapshot. |
| 981 | func (m *Service) ArchiveTask(ctx context.Context, id string, actor ActorContext) (TriageState, error) { |
| 982 | return m.mutateTaskTriage(ctx, id, actor, func(state *TriageState, latestActivity time.Time) { |
| 983 | state.Read = true |
| 984 | state.Archived = true |
| 985 | state.Dismissed = false |
| 986 | state.LastSeenActivityAt = latestActivity |
| 987 | }) |
| 988 | } |
| 989 | |
| 990 | // DismissTask persists the current actor-scoped triage state as dismissed for |
| 991 | // the task's latest known activity snapshot. |
nothing calls this directly
no test coverage detected