Skip to content

Conversation

@backportbot-nextcloud
Copy link

backport of #8231

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]>
@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 (25) milestone Oct 28, 2022
@nickvergessen nickvergessen merged commit 9fea417 into stable25 Oct 28, 2022
@nickvergessen nickvergessen deleted the backport/8231/stable25 branch October 28, 2022 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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