mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-21 23:47:35 +03:00
chat-fe: ignore comets in autocomplete
This commit is contained in:
parent
2f97099e94
commit
14399777e0
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -147,13 +147,13 @@ export class ChatInput extends Component {
|
||||
const suggestions = _.chain(this.props.envelopes)
|
||||
.map("author")
|
||||
.uniq()
|
||||
.filter(s => s.startsWith(match[1]))
|
||||
.filter(s => s.startsWith(match[1]) && s.length < 28) // exclude comets
|
||||
.take(3)
|
||||
.value();
|
||||
|
||||
const advance = _.chain(suggestions)
|
||||
.map(s => s.replace(match[0], ''))
|
||||
.reduce(getAdvance, )
|
||||
.reduce(getAdvance)
|
||||
.value();
|
||||
|
||||
let newState = {
|
||||
|
Loading…
Reference in New Issue
Block a user