mirror of
https://github.com/youwen5/iamb.git
synced 2025-08-05 20:12:23 -07:00
Add more documentation (#166)
This commit is contained in:
parent
2673cfaeb9
commit
9197864c5c
16 changed files with 267 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
|||
//! Window for Matrix rooms
|
||||
use std::borrow::Cow;
|
||||
use std::ffi::{OsStr, OsString};
|
||||
use std::fs;
|
||||
|
@ -85,6 +86,7 @@ use crate::worker::Requester;
|
|||
|
||||
use super::scrollback::{Scrollback, ScrollbackState};
|
||||
|
||||
/// State needed for rendering [Chat].
|
||||
pub struct ChatState {
|
||||
room_id: OwnedRoomId,
|
||||
room: MatrixRoom,
|
||||
|
@ -786,6 +788,7 @@ impl Promptable<ProgramContext, ProgramStore, IambInfo> for ChatState {
|
|||
}
|
||||
}
|
||||
|
||||
/// [StatefulWidget] for Matrix rooms.
|
||||
pub struct Chat<'a> {
|
||||
store: &'a mut ProgramStore,
|
||||
focused: bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue