Move to prev/next unseen message
This commit is contained in:
parent
05ce069121
commit
bfc221106d
5 changed files with 225 additions and 0 deletions
|
|
@ -129,6 +129,10 @@ pub trait MsgStore<M: Msg> {
|
|||
async fn newest_msg_id(&self) -> Option<M::Id>;
|
||||
async fn older_msg_id(&self, id: &M::Id) -> Option<M::Id>;
|
||||
async fn newer_msg_id(&self, id: &M::Id) -> Option<M::Id>;
|
||||
async fn oldest_unseen_msg_id(&self) -> Option<M::Id>;
|
||||
async fn newest_unseen_msg_id(&self) -> Option<M::Id>;
|
||||
async fn older_unseen_msg_id(&self, id: &M::Id) -> Option<M::Id>;
|
||||
async fn newer_unseen_msg_id(&self, id: &M::Id) -> Option<M::Id>;
|
||||
async fn set_seen(&self, id: &M::Id, seen: bool);
|
||||
async fn set_older_seen(&self, id: &M::Id, seen: bool);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue