Skip to content

Commit

Permalink
fixup! Implement base edit function
Browse files Browse the repository at this point in the history
  • Loading branch information
DorraJaouad committed Jan 12, 2024
1 parent 4b48269 commit 15cab80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/messagesService.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ const getReactionsDetails = async function(token, messageId) {
return axios.get(generateOcsUrl('apps/spreed/api/v1/reaction/{token}/{messageId}', { token, messageId }))
}

const editMessage = async function({ token, messageId, updatedMessage }) {
const editMessage = async function({ token, messageId, updatedMessage }, options) {
return axios.put(generateOcsUrl('apps/spreed/api/v1/chat/{token}/{messageId}', { token, messageId }), {
message: updatedMessage,
})
}, options)
}

const getTranslationLanguages = async function() {
Expand Down

0 comments on commit 15cab80

Please sign in to comment.