irc: force UI refresh after local send/append; no need to reselect channel to see own messages

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-09-20 02:23:38 +03:00
parent 747b30ad55
commit 3051a31136

View File

@@ -270,6 +270,9 @@ function IrcChatView:appendLine(line, target)
if self._ui_open and self.scroll_text_w and self.scroll_text_w.text_widget then
self.scroll_text_w.text_widget:setText(buf)
self.scroll_text_w:scrollToBottom()
if UIManager and self.frame and self.frame.dimen then
UIManager:setDirty(self, function() return "ui", self.frame.dimen end)
end
end
else
-- increment unread counter for background target