Support notifications via terminal bell (#227)

Co-authored-by: Benjamin Grosse <ste3ls@gmail.com>
This commit is contained in:
Ulyssa
2024-03-24 10:19:34 -07:00
committed by GitHub
parent db9cb92737
commit 99996e275b
6 changed files with 78 additions and 27 deletions

View File

@@ -1273,6 +1273,9 @@ pub struct ChatStore {
/// Last draw time, used to match with RoomInfo's draw_last.
pub draw_curr: Option<Instant>,
/// Whether to ring the terminal bell on the next redraw.
pub ring_bell: bool,
}
impl ChatStore {
@@ -1294,6 +1297,7 @@ impl ChatStore {
need_load: Default::default(),
sync_info: Default::default(),
draw_curr: None,
ring_bell: false,
}
}