review fixes

This commit is contained in:
Shpuld Shpuldson 2020-11-27 15:51:58 +02:00
parent b1ab09b348
commit e6e3b752d6
2 changed files with 2 additions and 3 deletions

View File

@ -186,7 +186,6 @@ const EmojiInput = {
this.suggestions = take(matchedSuggestions, 5) this.suggestions = take(matchedSuggestions, 5)
.map(({ imageUrl, ...rest }) => ({ .map(({ imageUrl, ...rest }) => ({
...rest, ...rest,
// eslint-disable-next-line camelcase
img: imageUrl || '' img: imageUrl || ''
})) }))
}, },

View File

@ -442,10 +442,10 @@ const users = {
store.commit('setUserForNotification', notification) store.commit('setUserForNotification', notification)
}) })
}, },
searchUsers ({ rootState, commit }, { query, saveUsers = true }) { searchUsers ({ rootState, commit }, { query }) {
return rootState.api.backendInteractor.searchUsers({ query }) return rootState.api.backendInteractor.searchUsers({ query })
.then((users) => { .then((users) => {
if (saveUsers) commit('addNewUsers', users) commit('addNewUsers', users)
return users return users
}) })
}, },