Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Show rooms in common with another user #4897

Closed
wants to merge 28 commits into from
Closed

Conversation

Half-Shot
Copy link
Contributor

@Half-Shot Half-Shot commented Jul 5, 2020

This PR adds the ability to show the rooms you have in common with another user.

As far as I'm aware, there is no design for this yet so it would be good to get some input at some point. This is inspired by Telegram's "groups in common" feature.

shared_rooms_feature

Additionally, this now shows a subset of those rooms (up to 3) in the invite room preview screen:

image

Meta-issue: https://github.com/vector-im/riot-web/issues/14339
JS-SDK PR: matrix-org/matrix-js-sdk#1417
Synapse PR: matrix-org/synapse#7785

@turt2live turt2live requested a review from a team July 5, 2020 16:26
@nadonomy
Copy link
Contributor

Definitely want this functionality, but need to think about how to expose it in the right panel in more detail so we don't add to the stockpile of design debt. Will look at this in earnest but more like a p2-1 where we have a few p1's in flight atm.

@Half-Shot Half-Shot self-assigned this Jul 23, 2020
src/components/views/right_panel/UserInfo.js Outdated Show resolved Hide resolved
src/components/views/rooms/RoomPreviewBar.js Outdated Show resolved Hide resolved
src/settings/Settings.ts Outdated Show resolved Hide resolved
Half-Shot and others added 2 commits August 20, 2020 23:07
Co-authored-by: Tulir Asokan <tulir@maunium.net>
@Half-Shot
Copy link
Contributor Author

@jryans sadly it looks like the preview doesn't show labs by default, which makes them a bit useless :(

@ShadowJonathan
Copy link

@Half-Shot What's the next step with this? What're we waiting for here?

@Half-Shot
Copy link
Contributor Author

Waiting for Design to get back to me on feedback and possibly a mockup to work against. I don't think there is any dev task for me.

@Half-Shot
Copy link
Contributor Author

Half-Shot commented Jan 18, 2021

N4d has got back to me with feedback, and I shall begin implementing :)

The headlines were:

  • Make the shared users list a button, that when clicked will show you a memberlist like thing except with a rooms.
  • Same for the invite dialogue

@nadonomy
Copy link
Contributor

nadonomy commented Feb 5, 2021

@Half-Shot just checking in on this as it's still on my list. :) If I'm blocking anything on this it may have slipped through the cracks on my side, so please DM if so.

@Half-Shot
Copy link
Contributor Author

@nadonomy it's still on me to do the changes we talked about :)

@Half-Shot Half-Shot removed the request for review from a team February 16, 2021 11:35
@Half-Shot
Copy link
Contributor Author

I've made some changes so that the shared room list now appears in the right panel. There is a lot left to do though:

  • Design on invite / user info panel for the shared users button needs work
  • No way to search / paginate the shared room list atm
  • Dispatching right panel actions from the invite dialogue doesn't work

@tulir
Copy link
Member

tulir commented Feb 21, 2021

The new panel for shared rooms seems to be missing a back button to go back to the profile view or member list. The x button just closes the whole panel.

… hs/shared-rooms

� Conflicts:
�	src/components/structures/RightPanel.tsx
�	src/components/views/right_panel/UserInfo.tsx
�	src/components/views/rooms/RoomPreviewBar.js
�	src/settings/Settings.tsx
�	src/stores/RightPanelStorePhases.ts
@t3chguy
Copy link
Member

t3chguy commented Jul 7, 2021

So looks like the API doesn't work on m.org which is quite a downer to this getting any further traction:

image

@tulir
Copy link
Member

tulir commented Jul 7, 2021

That looks like a misconfiguration on matrix.org, likely related to workers and routing requests

@t3chguy
Copy link
Member

t3chguy commented Jul 8, 2021

Blocked on matrix-org/synapse#10339

@aaronraimist
Copy link
Contributor

Presumably the PR will fail gracefully if the server doesn't support it?

Why does matrix.org have to support the feature for it to go into Element? m.org doesn't support presence but Element does.

@t3chguy
Copy link
Member

t3chguy commented Jul 8, 2021

The PR gracefully fails with a user-presented error, as conditionally showing a section in the user info panel would be confusing

@MurzNN
Copy link
Contributor

MurzNN commented Jan 5, 2022

Instead of "Shared rooms" maybe better to use phrase "Mutual rooms"? Because we already use "Share" therm to share room action, and current "Shared rooms" looks like this person has shared those rooms personally for you.

@ShadowJonathan
Copy link

This is more a MSC comment, but yes, it has already been noted on the MSC; matrix-org/matrix-spec-proposals#2666 (comment)

After unblocking this on synapse's side, im interested in working on this PR, as half-shot is currently unavailable to finish this work.

@turt2live
Copy link
Member

This has been open for so long I'm not really sure how to make it go forward at all.

It's clear we want this feature (per design review), but the implementation is subject to design iteration. The code is also almost certainly bitrotted to a point of no return - even if the merge conflicts can be dealt with, there's non-trivial architectural changes and modern code style to adhere to.

I think the best thing for this PR is to probably close it and if someone wants to reuse the code then it'll still be here. However, I will note that design work needs to be completed before someone can reasonably pick this up again.

If an issue hasn't been opened, please open one so it can get added to the design backlog.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.