irc: force TextViewer reinit after live append to current channel to work around UI not repainting

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-09-20 02:45:22 +03:00
parent bdb131cbfa
commit 8a38e51e20

View File

@@ -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