-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: start ephemeral timer when chat is archived #6367
Conversation
I wonder when do UIs call On Android I see "Mark All as Read" in 3-dot menu in Archived chatlist, does it actually mark chat as noticed instead? |
e2064f7
to
dab792e
Compare
dab792e
to
c547b7a
Compare
c547b7a
to
f8e5b03
Compare
@@ -3242,7 +3246,7 @@ pub async fn marknoticed_chat(context: &Context, chat_id: ChatId) -> Result<()> | |||
.query_map( | |||
"SELECT DISTINCT(m.chat_id) FROM msgs m | |||
LEFT JOIN chats c ON m.chat_id=c.id | |||
WHERE m.state=10 AND m.hidden=0 AND m.chat_id>9 AND c.blocked=0 AND c.archived=1", | |||
WHERE m.state=10 AND m.hidden=0 AND m.chat_id>9 AND c.archived=1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was not marking as noticed messages in contact request chats. But even in blocked chats it does not make sense not to mark them as noticed, so I removed c.blocked
check completely.
This turned out more complicated when I wrote tests, because messages are already marked as noticed when you archive the chat and then we also need to start timers. |
f8e5b03
to
f5533c5
Compare
f5533c5
to
9b507f2
Compare
Follow-up to #6365