Query and set seen status via store
This commit is contained in:
parent
20ec6ef3b3
commit
ff4118e21d
4 changed files with 48 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue