Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/Files/TemplateLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,15 @@ public function handle(Event $event): void {
return;
}

$user = $this->userSession->getUser();
if ($user instanceof IUser && $this->talkConfig->isDisabledForUser($user)) {
return;
}

Util::addStyle(Application::APP_ID, 'At');
Util::addStyle(Application::APP_ID, 'icons');
Util::addScript(Application::APP_ID, 'talk-files-sidebar');

$user = $this->userSession->getUser();
if ($user instanceof IUser) {
$this->publishInitialStateForUser($user, $this->rootFolder, $this->appManager);
} else {
Expand Down
15 changes: 13 additions & 2 deletions src/PublicShareSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
<script>
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import PreventUnload from 'vue-prevent-unload'
import { showError } from '@nextcloud/dialogs'
import { loadState } from '@nextcloud/initial-state'
import CallView from './components/CallView/CallView.vue'
import ChatView from './components/ChatView.vue'
Expand Down Expand Up @@ -154,9 +155,19 @@ export default {

this.joiningConversation = true

await this.getPublicShareConversationData()
try {
await this.getPublicShareConversationData()

await this.$store.dispatch('joinConversation', { token: this.token })
} catch (exception) {
this.joiningConversation = false

showError(t('spreed', 'Error occurred when joining the conversation'))

await this.$store.dispatch('joinConversation', { token: this.token })
console.error(exception)

return
}

// No need to wait for it, but fetching the conversation needs to be
// done once the user has joined the conversation (otherwise only
Expand Down