From fbdea7a734cac340e66c1669862bdbbe614dbe57 Mon Sep 17 00:00:00 2001 From: Guillaume Lagrange Date: Thu, 12 Sep 2024 00:33:19 +0200 Subject: [PATCH] feat: do not show outdated comments in review --- lua/octo/reviews/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/octo/reviews/init.lua b/lua/octo/reviews/init.lua index e9ae1eb3..b477e1a4 100644 --- a/lua/octo/reviews/init.lua +++ b/lua/octo/reviews/init.lua @@ -228,7 +228,9 @@ function Review:update_threads(threads) thread.startDiffSide = thread.diffSide thread.originalStartLine = thread.originalLine end - self.threads[thread.id] = thread + if not thread.isOutdated then + self.threads[thread.id] = thread + end end if self.layout then self.layout.file_panel:render()