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

Show low priority rooms in dm #3705

Merged
merged 8 commits into from
Jul 20, 2021
Merged

Show low priority rooms in dm #3705

merged 8 commits into from
Jul 20, 2021

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented Jul 19, 2021

Fixes #3463:

image

Also some cleanup, I hope I did not break anything. Can you check @BillCarsonFr ?

@bmarty bmarty requested a review from BillCarsonFr July 19, 2021 17:22
updatableQuery = it
}
).buildSections(initialState.displayMode)
private val roomListSectionBuilder = if (appStateHandler.getCurrentRoomGroupingMethod() is RoomGroupingMethod.BySpace) {
Copy link
Member Author

Choose a reason for hiding this comment

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

no more lazy {} block here, is it OK @BillCarsonFr ?

Copy link
Member

Choose a reason for hiding this comment

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

I wanted to avoid setting that up in the viewModel init, I think it's better to avoid doing work in constructor. Can it stay lazy?

Copy link
Member Author

@bmarty bmarty Jul 20, 2021

Choose a reason for hiding this comment

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

OK, but we are just calling the constructor. buildSections() is still called in the lazy {} block. So I think it is OK. Do you agree?

Copy link
Member

Choose a reason for hiding this comment

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

yes

ONLY_DM,
ONLY_ROOMS,
ALL
}
Copy link
Member Author

Choose a reason for hiding this comment

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

it was not used

Copy link
Member

Choose a reason for hiding this comment

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

Oh strange, was extracted to a top level class but this did stay...

@bmarty bmarty merged commit f5c79ba into develop Jul 20, 2021
@bmarty bmarty deleted the feature/bma/low_dm branch July 20, 2021 08:21
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.

Low priority does nothing for DMs
2 participants