Mark all as read
This commit is contained in:
parent
5bdc29c262
commit
5363904a9d
|
@ -900,7 +900,7 @@ impl DbAdapter {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn mark_all_message_read(&self, account: u32, read: bool) -> anyhow::Result<()> {
|
pub fn mark_all_messages_read(&self, account: u32, read: bool) -> anyhow::Result<()> {
|
||||||
self.connection.execute("UPDATE messages SET read = ?1 WHERE account = ?2",
|
self.connection.execute("UPDATE messages SET read = ?1 WHERE account = ?2",
|
||||||
params![read, account])?;
|
params![read, account])?;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
@ -539,6 +539,11 @@ impl Wallet {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn mark_all_messages_read(&self, account: u32, read: bool) -> anyhow::Result<()> {
|
||||||
|
self.db.mark_all_messages_read(account, read)?;
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
pub fn set_lwd_url(&mut self, ld_url: &str) -> anyhow::Result<()> {
|
pub fn set_lwd_url(&mut self, ld_url: &str) -> anyhow::Result<()> {
|
||||||
self.ld_url = ld_url.to_string();
|
self.ld_url = ld_url.to_string();
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in New Issue