Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/NewMessageForm/NewMessageForm.vue6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/components/NewMessageForm/NewMessageForm.vue b/src/components/NewMessageForm/NewMessageForm.vue
index eb97d1528..aa74fe158 100644
--- a/src/components/NewMessageForm/NewMessageForm.vue
+++ b/src/components/NewMessageForm/NewMessageForm.vue
@@ -683,6 +683,12 @@ export default {
await shareFile(filePath, this.token, '', '')
+ // The Viewer expects a file to be set in the sidebar if the sidebar
+ // is open.
+ if (this.$store.getters.getSidebarStatus) {
+ OCA.Files.Sidebar.state.file = filePath
+ }
+
OCA.Viewer.open({
// Viewer expects an internal absolute path starting with "/".
path: filePath,