···141141 offset: u16 = 0,
142142 /// Message offset into the list of messages. We use this to lock the viewport if we have a
143143 /// scroll. Otherwise, when offset == 0 this is effectively ignored (and should be 0)
144144- msg_offset: ?u16 = null,
144144+ msg_offset: ?usize = null,
145145146146 /// Pending scroll we have to handle while drawing. This could be up or down. By convention
147147 /// we say positive is a scroll up.
···11831183 }
11841184 // Our scroll offset gets adjusted as well
11851185 self.scroll.offset += adjustment;
11861186+ // We will set the msg offset too to prevent any bumping of the scroll state when we get
11871187+ // a new message
11881188+ self.scroll.msg_offset = self.messages.items.len;
11861189 }
1187119011881191 if (did_scroll_to_last_read) {