-
Notifications
You must be signed in to change notification settings - Fork 452
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 listable scope attribute for conversations #4706
Conversation
I've pushed a few more commits which I had locally which make the search result visible in the left sidebar. I'm not too happy as it uses the global search provider and it feels wrong. Tomorrow I'll look into the endpoint that lists joined conversations and see if I can extend it somehow. |
We once also discussed a dedicated view for them? Having it on the normal endpoint would make integration for the mobile clients pretty easy. |
=> maybe not, if the endpoint is "listed-room" then if we need to retrieve a single room it should happen on that endpoint instead (which we can implement later if needed) |
yeah, but as a first step we agreed to not handle "guests outside the guest app" for now due to the missing view |
Adjusted after review. Also modified to use a new endpoint "/listed-room" to search and used the Next up: making it possible to actually join those listable rooms |
somehow I dislike the term as it somehow conflicts with "public" vs "non-public". might need to come up with better terms before this is finalized => moved to top post |
It is now possible to join listable rooms by clicking on the left sidebar. Next up: improve the UX after clicking:
|
after a lot of trial and error I managed to make the transition look clean when clicking on a listable entry: the left sidebar will appear with an entry saying "Joining..." until it gets refreshed. as an added bonus, the left sidebar now scrolls to the item after joining. still unresolved issues:
|
The response of the join should contain all the conversation info iirc? |
@nickvergessen if the POST to "/active" does, then could try and add it to the store right away. So far I noticed that the conversation is re-fetched later on which automagically makes it work, somehow. (seems it's refreshConversations from the timer) I still do wonder how non-listable conversations can work correctly in this code path, isn't getParticipantIdentifier() outdated here
|
participant not found error solved by adding the conversation early, as discussed: 2baed21 |
Added new conversation settings section "Conversation settings" and moved the listable and locking settings there. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This reverts commit ba01861 but preserves code relevant for the listable feature. Removes the global search provider as it's adding additional noise to the search results. Users should only use the talk-specific search in the left sidebar. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
In case the API would return a room for some reason, it would return the name as "Private Conversation". The logic has been updated to also work properly with listable vs non-listable rooms in regards to guests. Refactored the listable check logic into a single method to make it reusable. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Smallint should be enough for everyone. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
5fd1523
to
63b020a
Compare
removed redundant isset, fixed DCO issue, rebased expecting green now :-) |
Version bump got lost on rebase because master already is |
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
The backport to stable20.1 failed. Please do this backport manually. |
The backport to stable20 failed. Please do this backport manually. |
we didn't backport the conversation settings: #4576 unless critical, I'd rather not backport these huge changes |
we shouldn't backport this at all... |
ah, seems you asked the bot to backport a single commit about the ctrl+c... not sure why there would be conflict, maybe the bot tried to backport all I can do this manually |
here we go: #4759 |
Ah, no the problem is you rebased and the sha of the commit didn't exist anymore. |
this PR will remove the guest manager cheat: #4764 |
Related issue
Fixes #1763
Description
Added ability to set a conversation as listable for regular users and/orguest users from the guest app.
This means those users will be able to search for those rooms and join them even if they haven't joined before.
Todos
detect guest app in UI=> obsolete ?ListedConversationSearch (if we agree to keep it)removedIssues
Testing
listed rooms of public and private types appear in search results from global search API, with search term=> removedOpen topics
should we forbid joining listable rooms when calling "/active" endpoint if version used is not v3 ?=> no