Move to prev/next unseen message

This commit is contained in:
Joscha 2022-08-08 16:59:24 +02:00
parent 05ce069121
commit bfc221106d
5 changed files with 225 additions and 0 deletions

View file

@ -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);
}