Skip to content
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

add option to 'mark all selected chats read' #2226

Merged
merged 2 commits into from
Jul 4, 2024
Merged

Conversation

r10s
Copy link
Member

@r10s r10s commented Jul 2, 2024

the first commit adds an option to mark selected chats as read at the position already known from marking archive as read. the option is only available if there is at least one unread chat selected - otherwise, the option is disabled.

the second commit cleans up a bit, removing a probably unneeded hack, see commit message for details.

counterpart of deltachat/deltachat-android#3130

@r10s r10s requested a review from zeitschlag July 2, 2024 12:59
@r10s r10s force-pushed the r10s/mark-selection-read branch from 059079c to 8977b78 Compare July 2, 2024 13:00
r10s added 2 commits July 3, 2024 00:10
this adds an option to mark selected chats as read
at the position already known from marking archive as read.

the option is only available if there is at least one unread chat selected -
otherwise, the option is disabled.

counterpart of deltachat/deltachat-android#3130
…ing 1 if selections is not started, checking different sets of selections wrt pinning)
@r10s r10s force-pushed the r10s/mark-selection-read branch from cc30a1f to 8c82e40 Compare July 2, 2024 22:10
Copy link
Collaborator

@zeitschlag zeitschlag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -691,7 +691,7 @@ class ChatListViewController: UITableViewController {
return false
}
titleView.accessibilityHint = nil
let cnt = tableView.indexPathsForSelectedRows?.count ?? 1
let cnt = tableView.indexPathsForSelectedRows?.count ?? 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It took me a while to understand what cnt stands for

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leaving vocals out to make names shorter is a thing maybe only ppl understand growing up with 8+3 filename and other restrictions, hard to get rid of this habit obviously :)

@r10s r10s merged commit 6134570 into main Jul 4, 2024
1 check passed
@r10s r10s deleted the r10s/mark-selection-read branch July 4, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants