mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
show pinned chats again and order them to the top
This commit is contained in:
10
src/chat.rs
10
src/chat.rs
@@ -148,17 +148,17 @@ impl ChatId {
|
||||
self
|
||||
);
|
||||
|
||||
let mut send_event = false;
|
||||
|
||||
if new_archive_state == ArchiveState::Archived {
|
||||
let send_event = if new_archive_state == ArchiveState::Archived {
|
||||
sql::execute(
|
||||
context,
|
||||
&context.sql,
|
||||
"UPDATE msgs SET state=? WHERE chat_id=? AND state=?;",
|
||||
params![MessageState::InNoticed, self, MessageState::InFresh],
|
||||
)?;
|
||||
send_event = true;
|
||||
}
|
||||
true
|
||||
} else {
|
||||
false
|
||||
};
|
||||
|
||||
sql::execute(
|
||||
context,
|
||||
|
||||
Reference in New Issue
Block a user