-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Fix and rework "start chat" text field input #10450
Conversation
Jenkins Builds
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -33,7 +33,14 @@ MembersSelectorBase { | |||
} | |||
|
|||
edit.onTextChanged: { | |||
d.lookupContact(edit.text) | |||
// When edited, give a small delay in case next character is printed soon | |||
contactLookupDelayTimer.start() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No double check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fine, I stop the timer on pasting:
status-desktop/ui/app/AppLayouts/Chat/views/MembersSelectorView.qml
Lines 40 to 44 in 24d149c
onTextPasted: (text) => { | |
// When pated, process text immediately | |
contactLookupDelayTimer.stop() // when pasting, textChanged is still emited first | |
d.lookupContact(text) | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
Fixes #10318
Relates to:
What does the PR do
I've consolidated all the work we've done here and here's the solution.
zQ3sh
asyncRequestContactInfoTask
which led to a crushgetContactById
checks the decompressed key for validnessAffected areas
"Start chat" screen
Screenshot of functionality (including design for comparison)
Screen.Recording.2023-04-26.at.21.18.22.mov