Commit 0c8170ba0a21c43a0ced6048c04d79e7c03cee13
fix filter to not cut off the first letter of user name!
mix irving committed on 4/25/2018, 10:06:13 PMParent: 9890e025b4940cce2b28ab84a215a11faef3013a
Files changed
app/html/filter.js | changed |
app/html/filter.js | ||
---|---|---|
@@ -157,9 +157,9 @@ | ||
157 | 157 … | |
158 | 158 … | const getAboutSuggestions = api.about.async.suggest() |
159 | 159 … | addSuggest(userInput, (inputText, cb) => { |
160 | 160 … | inputText = inputText.replace(/^@/, '') |
161 | - cb(null, getAboutSuggestions(inputText.slice(1))) | |
161 … | + cb(null, getAboutSuggestions(inputText)) | |
162 | 162 … | }, {cls: 'PatchSuggest'}) |
163 | 163 … | userInput.addEventListener('suggestselect', ev => userId.set(ev.detail.id)) |
164 | 164 … | |
165 | 165 … | function followFilter (msg) { |
Built with git-ssb-web