mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-10 01:09:29 +00:00
Editor: Fix lag
This commit is contained in:
parent
a8f8933e11
commit
d9f115ba67
|
@ -591,11 +591,16 @@ extension StatusEditor {
|
||||||
}
|
}
|
||||||
|
|
||||||
private func resetAutoCompletion() {
|
private func resetAutoCompletion() {
|
||||||
withAnimation {
|
if !tagsSuggestions.isEmpty ||
|
||||||
tagsSuggestions = []
|
!mentionsSuggestions.isEmpty ||
|
||||||
mentionsSuggestions = []
|
currentSuggestionRange != nil ||
|
||||||
currentSuggestionRange = nil
|
showRecentsTagsInline {
|
||||||
showRecentsTagsInline = false
|
withAnimation {
|
||||||
|
tagsSuggestions = []
|
||||||
|
mentionsSuggestions = []
|
||||||
|
currentSuggestionRange = nil
|
||||||
|
showRecentsTagsInline = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue