-
Notifications
You must be signed in to change notification settings - Fork 20
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
Populate the dedicated view of direct messages ("People") in the rooms list #139
Comments
I'm confused about a few things.
https://github.com/Demolemon11/robrix/blob/main/src/sliding_sync.rs |
I think they're the same, but I'm not sure since I haven't tried it myself.
Also not sure. I know the sdk is in the middle of major changes, specifically that the old sliding sync is being removed in favor of the new "simplified" sliding sync.
Hard to know for sure without seeing your code; if you have some code, feel free to submit a PR. But in general, we don't want to duplicate the views because we want DMs to be shown in the same Rooms List view, so I don't think that's the best way forward. I think all you'd need to do is when drawing the rooms list, sort each room under the proper Rooms or People heading based on whether it's a DM room. |
Are you saying that my changing |
At the begining, I just didnot want to modify |
ah, no, I wasn't saying that, sorry. You may need to check whether a room is a DM/direct room within the "backend" (the
Those don't seem to be the correct line numbers, as they're completely irrelevant to DM stuff. If you want a proper code review, please submit a PR -- git has tools for this purpose. Links to separate code files are not reviewable.
yea no problem! don't worry, we're here to help as much as possible. |
I am looking at this issue. |
It seems like room_list is inside cached_widget. robrix/src/home/rooms_sidebar.rs Line 152 in df4f372
It is not possible to differentiate room_type as property in the roomlist's draw_walk function as there can only be 1 instance: e.g
|
I will try passing the property through context. |
How do you pass attributes through context? Could you please be more specific? |
|
Could you leave your e-mail ? There's something personal I'd like to talk to you about. |
|
Now that we have a new UI, this should be relatively straightforward. All we need to do is determine whether a room is a direct message, which can be done via multiple different SDK APIs:
Then, those "direct" rooms should be placed under the
People
heading of the rooms list, and thus they should not appear under theRooms
heading any more.Note that the collapsible section headers don't actually collapse/expand yet -- that is a known missing feature.
The text was updated successfully, but these errors were encountered: