diff --git a/src/app.zig b/src/app.zig index 8559a9d..9bb247d 100644 --- a/src/app.zig +++ b/src/app.zig @@ -251,16 +251,8 @@ pub const App = struct { .focus_out => self.has_focus = false, .focus_in => { - if (self.selectedBuffer()) |buffer| { - // If we have a selected channel, we reset the last_read_indicator state when - // gaining focus. This means that any messages received - switch (buffer) { - .client => {}, - .channel => |channel| channel.last_read_indicator = channel.last_read, - } - } - self.has_focus = true; + ctx.redraw = true; }, else => {},