mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 22:36:24 +00:00
Lukáš Tinkl
5dbc08dca3
chore: speedup channel switching
Correctly clear the chat input We enable/disable the chat input on various occasions (switching channels, communities, checking for the person being a contact, etc.). When we do so, we clear the text of the input which causes all sorts of internal handlers to get fired, namely the `onTextChanged` part which parses the text, emojis etc... which is very time consuming. More fixes here in the followup commits; but by using `clear()` it's much faster, resets correctly the internal state and also doesn't fire when the input had been empty already before. Found with QML profiler
…
…
…
…
…
Status-desktop
Desktop client for the Status Network built with Nim and Qt
Dev Docs: https://hackmd.io/@status-desktop/B1naRjxh_/https%3A%2F%2Fhackmd.io%2F%40status-desktop%2FB1eOaf-nd
Description
Languages
QML
37.6%
JavaScript
30.4%
Nim
19%
Python
5.8%
C++
5.4%
Other
1.7%