[stable17] Do not immediately join the conversation in public share pages #2347
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before as soon as the public share page loaded the user or guest automatically joined the conversation. Now the conversation must be explicitly joined by clicking a button in the Talk sidebar.
However, the current approach still has a problem: if the conversation was not created yet as soon as the public share page is loaded the conversation is created, even if the user does not join it. When the conversation is created a system message is shown, so this could still be used for "stalking" (knowing when the recipient of a link share opened it for the first time).
This could be fixed by:
Not adding the "XXX created the conversation" system message for file rooms (which I am not sure if it is very useful/needed in that case anyway).
Splitting getting the token for a file room and creating the file room. Currently, when the room token is got and the room does not exist yet the room is automatically created. To fix the issue the UI should first try to get the room token and, if it does not exist yet, explicitly create it once the user wants to join the room.
This would involve changes to PublicShareController, which was merged with FilesIntegrationController for Talk 8, so it would be better to backport Free FilesController #2189 and Fix minor php issues #2245 to stable17 to avoid working twice when porting this to master.
@nickvergessen Thoughts? I would go with the first option, simply not adding the conversation created system message for file rooms.
Fix #2382