Skip to content

Commit

Permalink
Merge pull request #11330 from nextcloud/fix/473/fix-desktop-upload
Browse files Browse the repository at this point in the history
fix(shares): pass the correct payload to the upload method
  • Loading branch information
Antreesy authored Jan 2, 2024
2 parents fdd2ada + 48a4557 commit c61fd9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/NewMessage/NewMessageUploadEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<NcButton type="tertiary" @click="handleDismiss">
{{ t('spreed', 'Dismiss') }}
</NcButton>
<NcButton type="primary" @click="handleUpload(null)">
<NcButton type="primary" @click="handleUpload({ caption: null, options: null})">
{{ t('spreed', 'Send') }}
</NcButton>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/store/fileUploadStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ const actions = {
* @param {object} context.state the contexts state object.
* @param {object} data the wrapping object
* @param {string} data.uploadId The unique uploadId
* @param {string} [data.caption] The text caption to the media
* @param {object} data.options The share options
* @param {string|null} data.caption The text caption to the media
* @param {object|null} data.options The share options
*/
async uploadFiles({ commit, dispatch, state, getters }, { uploadId, caption, options }) {
if (state.currentUploadId === uploadId) {
Expand Down

0 comments on commit c61fd9c

Please sign in to comment.