Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(shares): pass the correct payload to the upload method #11330

Merged
merged 1 commit into from
Jan 2, 2024
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
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
Loading