Method TrySetArchivedAsync
- Namespace
- MailFathom.Application.Agent.Conversations
- Assembly
- MailFathom.Application.dll
TrySetArchivedAsync(AgentConversationId, UserId, bool, CancellationToken)
Puts a conversation this person holds away, or takes it back out of the archive.
Task<bool> TrySetArchivedAsync(AgentConversationId id, UserId user, bool archived, CancellationToken cancellationToken)
Parameters
idAgentConversationIdThe conversation to move.
userUserIdThe person whose conversation it has to be.
archivedboolcancellationTokenCancellationTokenCancels the write.
Returns
- Task<bool>
true when the conversation was this person's; false where they hold no such conversation.
Remarks
Archiving is where a conversation is listed and nothing else: every entry stays, the conversation reads and answers exactly as it did, and an answer being composed in it goes on being composed. It leaves the instant the history is ordered by alone, for the reason naming a conversation does — putting one away is a fact about it rather than a turn of it, and moving it would send an archived conversation back to the top of its group. Moving a conversation to where it already is is not a refusal: what the caller asked for is the case, so it is reported as done and the conversation is left where it stands.