Support sending and displaying typing notifications (#9)

This commit is contained in:
Ulyssa 2023-01-03 13:57:28 -08:00
parent c744d74e42
commit d038da6844
No known key found for this signature in database
GPG key ID: 1B3965A3D18B9B64
12 changed files with 348 additions and 30 deletions

View file

@ -21,8 +21,10 @@ pub struct WelcomeState {
impl WelcomeState {
pub fn new(store: &mut ProgramStore) -> Self {
let buf = store.buffers.load_str(IambBufferId::Welcome, WELCOME_TEXT);
let mut tbox = TextBoxState::new(buf);
tbox.set_readonly(true);
WelcomeState { tbox: TextBoxState::new(buf) }
WelcomeState { tbox }
}
}