Skip to content

Commit

Permalink
Fixes #28
Browse files Browse the repository at this point in the history
  • Loading branch information
FransBouma committed Apr 7, 2021
1 parent 1fd7485 commit b001e39
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion GuiCore/Controllers/ThreadController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,13 @@ public async Task<ActionResult> Delete(int id = 0)
}

int forumId = thread.ForumID;
await ThreadManager.DeleteThreadAsync(id);
var deleteResult = await ThreadManager.DeleteThreadAsync(id);
if(deleteResult)
{
// invalidate cached numbers. It's not known if the thread was in a support queue, so the numbers for the support queues are recalculated next time
// they're needed.
ApplicationAdapter.InvalidateCachedNumberOfThreadsInSupportQueues();
}
return RedirectToAction("Index", "Forum", new {forumId = forumId});
}

Expand Down

0 comments on commit b001e39

Please sign in to comment.