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:
6
main.lua
6
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
|
||||
|
||||
Reference in New Issue
Block a user