Disable chat deletion

This commit is contained in:
sevenhill
2026-07-06 22:46:55 +03:00
parent 52ae43c25d
commit 183ec8d90f
11 changed files with 95 additions and 253 deletions
+3 -4
View File
@@ -125,10 +125,9 @@ public sealed class MaxOutboxService(
chat,
(externalChatId, chatUrl) => maxBridge.ClearChatHistoryAsync(externalChatId, chatUrl, cancellationToken),
cancellationToken),
ChatPendingMaxAction.DeleteChat => await ApplyMaxChatActionAsync(
chat,
(externalChatId, chatUrl) => maxBridge.DeleteChatAsync(externalChatId, chatUrl, cancellationToken),
cancellationToken),
ChatPendingMaxAction.DeleteChat => new MaxActionResult(
false,
"Chat deletion is disabled because MAX does not remove chats from the web client."),
_ => new MaxActionResult(false, $"Unsupported chat action: {pendingAction.Value}.")
};
}