Repository navigation
Fix stuck Checking read receipts on arrival/resume, QtGoalBar mobile clipping, and bundle_check CliCommand guard - #2326
Merged
Conversation
…port after arrival glides, and size QtGoalBar by wrapped heightForWidth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the two Toad-side causes of read receipts staying stuck on
Checkingon Android/desktop, plus mobileQtGoalBarvertical text clipping:src/toad/arrivals.py,src/toad/client/history_pager.py): when a new message arrived at the tail,rows_publishedfiredcheck_notificationsbefore the arrival glide scrolled it into view, andViewportArrival.land/ReaderPlacement.layout_scrollscrolled under_restoring = Truewithout callingrequest_preparation(). Both Qt and Textual now callrequest_preparation()once a non-glide layout scroll or arrival glide finishes (zero mid-glide spam).src/toad/client/connection.py,src/toad/client/history_notifications.py,src/toad/client/subscribers.py):Observation.attachpreviously wipednotification_viewsandnotification_knownwithout re-subscribing open views (unlikesidebar_views,team_pages,thread_status, andviews_interest), stranding every open tab's receipts after app resume, network blip, or Core restart. Active and outage-pending subscribers are now captured before clearing and rebound polymorphically byObserving/FailedObservation.QtGoalBar.fit_documentuses wrappedheightForWidth(src/toad/qt/goal.py): fixes 2nd-line vertical clipping ofObjective:on 412px phones (wherebody.sizeHint().height()measured unwrapped 1-line height 17px instead of wrapped 51px).tools/android/bundle_check.py): verifiesFieldCodec.encode(ThreadCliCommand(name='probe'))succeeds in the stripped-S -BAPK tree withoutpackaging.Verified: 63 passed (
test_android_perf_ux_arrivals.py,test_arrival_fade.py,test_message_notifications.py,test_shared_frontend_members.py),qt_inherit_ratchet.py/shadow_check.py/guarded_imports.pyall 0,REL_IMPORTS=0.