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

List unread rooms on no query in quick room selector #378

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

meain
Copy link

@meain meain commented Jun 26, 2022

This helps to easily go through and view all the unread rooms.

This helps to easily go through and view all the unread rooms.
if len(room.UnreadMessages) > 0 {
if room.UnreadCount() > 0 {
// Higher importance to rooms where notifications are not disabled
fs.matches = append(
Copy link
Author

Choose a reason for hiding this comment

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

I am not entirely sure if this is the best approach. Let me know if I should maybe switch out the the type of fs.matches to something else.

@drasbeck
Copy link

@tulir, I tested this PR as I worked on something similar, seems solid. 👍

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