-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Suspend inbox loading on sends #14732
Conversation
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.
Not quite right, you probably really want this in BlockingSender
, although to be honest I'm not even sure this is a great idea there anymore. We should discuss.
8714714
to
93b194a
Compare
@mmaxim updated ptal! |
go/chat/utils/utils.go
Outdated
@@ -1660,3 +1660,16 @@ func SetUnfurl(mvalid *chat1.MessageUnboxedValid, unfurlMessageID chat1.MessageI | |||
} | |||
mvalid.Unfurls[unfurlMessageID] = unfurl | |||
} | |||
|
|||
// SuspendComponent will suspend the global ConvLoader until the return |
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.
Suspends any Suspendable
, not just ConvLoader
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.
Just fix comment (I know its mine originally)
93b194a
to
aa1028f
Compare
Suspend inbox loads when sending any messages as a potential optimization of the send path. It seems like the machinery was already in place, were there any other places we should be calling this?