Retry chat bulk actions after stale menu URL

This commit is contained in:
sevenhill
2026-07-05 21:40:08 +03:00
parent 1cffa1ef8d
commit f57faead53
2 changed files with 55 additions and 1 deletions
@@ -805,7 +805,8 @@ public sealed class ChatsController(
private static bool IsChatOpenFailure(string? error)
{
return error?.Contains("not found or did not open", StringComparison.OrdinalIgnoreCase) == true;
return error?.Contains("not found or did not open", StringComparison.OrdinalIgnoreCase) == true ||
error?.Contains("menu was not opened", StringComparison.OrdinalIgnoreCase) == true;
}
private async Task<List<Chat>> LoadChatsWithAttachmentsAsync(IReadOnlyCollection<Guid> chatIds, CancellationToken cancellationToken)