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)
.map(({ imageUrl, ...rest }) => ({
...rest,
// eslint-disable-next-line camelcase
img: imageUrl || ''
}))
},

View file

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