Query and set seen status via store

This commit is contained in:
Joscha 2022-08-08 15:00:20 +02:00
parent 20ec6ef3b3
commit ff4118e21d
4 changed files with 48 additions and 1 deletions

View file

@ -94,6 +94,7 @@ pub struct SmallMessage {
pub time: Time,
pub nick: String,
pub content: String,
pub seen: bool,
}
fn as_me(content: &str) -> Option<&str> {
@ -144,6 +145,10 @@ impl Msg for SmallMessage {
self.parent
}
fn seen(&self) -> bool {
self.seen
}
fn last_possible_id() -> Self::Id {
Snowflake::MAX
}