remove unused function dc_marknoticed_all_chats()

This commit is contained in:
B. Petersen
2020-09-24 11:23:44 +02:00
parent b5e1b1a2d2
commit f3c7d2f9c6
3 changed files with 1 additions and 56 deletions

View File

@@ -1800,35 +1800,6 @@ pub async fn marknoticed_chat(context: &Context, chat_id: ChatId) -> Result<(),
Ok(())
}
pub async fn marknoticed_all_chats(context: &Context) -> Result<(), Error> {
if !context
.sql
.exists(
"SELECT id
FROM msgs
WHERE state=10;",
paramsv![],
)
.await?
{
return Ok(());
}
context
.sql
.execute(
"UPDATE msgs
SET state=13
WHERE state=10;",
paramsv![],
)
.await?;
context.emit_event(EventType::MsgsNoticed(ChatId::new(0)));
Ok(())
}
pub async fn get_chat_media(
context: &Context,
chat_id: ChatId,