Skip to content

Commit

Permalink
Merge pull request #4835 from nextcloud/bugfix/noid/cannot-search-lis…
Browse files Browse the repository at this point in the history
…table

Fix listable search request
  • Loading branch information
PVince81 authored Dec 22, 2020
2 parents de1c54e + ac44202 commit c315851
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/conversationsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ const checkTalkVersionHash = function(response) {

/**
* Fetch listed conversations
* @param {string} searchTerm The string that will be used in the search query.
* @param {string} searchText The string that will be used in the search query.
* @param {object} options options
*/
const searchListedConversations = async function(searchTerm, options) {
const searchListedConversations = async function({ searchText }, options) {
return axios.get(generateOcsUrl('apps/spreed/api/v3', 2) + 'listed-room', Object.assign(options, {
params: {
searchTerm,
searchTerm: searchText,
},
}))
}
Expand Down

0 comments on commit c315851

Please sign in to comment.