forked from retoor/snek
Min distance.
This commit is contained in:
@@ -102,7 +102,9 @@ class ChatInputComponent extends NjetComponent {
|
||||
console.info("minDistance",minDistance)
|
||||
}
|
||||
});
|
||||
|
||||
if (minDistance < 5){
|
||||
closestAuthor = 0;
|
||||
}
|
||||
return { mention, closestAuthor, distance: minDistance };
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user