From 8a38e51e20e672e80e4add05e5b6368054d55119 Mon Sep 17 00:00:00 2001 From: Slendi Date: Sat, 20 Sep 2025 02:45:22 +0300 Subject: [PATCH] irc: force TextViewer reinit after live append to current channel to work around UI not repainting Signed-off-by: Slendi --- main.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.lua b/main.lua index b615152..189b2d2 100644 --- a/main.lua +++ b/main.lua @@ -270,6 +270,12 @@ function IrcChatView:appendLine(line, target) if self._ui_open then -- Reuse the same refresh path as the channel switcher self:refreshView(target) + -- Some platforms require a full widget re-init to repaint reliably + if UIManager and self.reinit then + UIManager:nextTick(function() + if self._ui_open then self:reinit() end + end) + end end else -- increment unread counter for background target