Skip to content

Conversation

@backportbot-nextcloud
Copy link

@backportbot-nextcloud backportbot-nextcloud bot commented Oct 28, 2022

  • ⚠️ This backport had conflicts and is incomplete

backport of #8231

@backportbot-nextcloud backportbot-nextcloud bot added bug feature: frontend 🖌️ "Web UI" client feature: talk-sidebar ⬅️ Sidebar integration of Talk into other apps like sharing and documents labels Oct 28, 2022
@backportbot-nextcloud backportbot-nextcloud bot added this to the 💛 Next Patch (24) milestone Oct 28, 2022
Util::addStyle(Application::APP_ID, 'merged-files');
Util::addScript(Application::APP_ID, 'talk-files-sidebar');

$user = $this->userSession->getUser();
Copy link
Member

Choose a reason for hiding this comment

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

Backport fail

Joining a conversation in the public share page fails if Talk use is
limited to certain groups and the public share page is opened by a user
not in those groups. The incognito mode is enabled when the public share
page is loaded, so from the point of view of the event handler that adds
the Talk sidebar script the user is always a guest, and therefore adding
the script can not be prevented for users not allowed to use Talk.

Moreover, when those users tried to join the conversation in the public
share page the button was kept disabled with a loading spinner forever,
and no error was shown to the user.

For simplicity, and as it could be useful if joining the conversation
fails for any other reason, instead of looking for other ways to hide
the Talk sidebar if the user is not allowed to use Talk now, if joining
the conversation in the public share page fails, the button is restored
and an error toast is shown.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@danxuliu danxuliu force-pushed the backport/8231/stable24 branch from b2babd9 to 06045ec Compare October 28, 2022 11:47
Copy link
Member

@danxuliu danxuliu left a comment

Choose a reason for hiding this comment

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

Tested and works 👍

@nickvergessen nickvergessen merged commit 5684328 into stable24 Oct 31, 2022
@nickvergessen nickvergessen deleted the backport/8231/stable24 branch October 31, 2022 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release bug feature: frontend 🖌️ "Web UI" client feature: talk-sidebar ⬅️ Sidebar integration of Talk into other apps like sharing and documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants