zulip/static
Greg Price dcb5bb7914 typing_status: Combine two parameters into one, with a maybe-type.
The main motivation for this change is to simplify this interface
and make it easier to reason about.

The case where it affects the behavior is when
is_valid_conversation() returns false, while current_recipient
and get_recipient() agree on some truthy value.

This means the message-content textarea is empty -- in fact the
user just cleared it, because we got here from an input event on
it -- but the compose box is still open to some PM thread that we
have a typing notification still outstanding for.

The old behavior is that in this situation we would ignore the
fact that the content was empty, and go ahead and prolong the
typing notification, by updating our timer and possibly sending a
"still typing" notice.

This contrasts with the behavior (both old and new) in the case
where the content is empty and we *don't* already have an
outstanding typing notification, or we have one to some other
thread.  In that case, we cancel any existing notification and
don't start a new one, exactly as if `stop` were called
(e.g. because the user closed the compose box.)

The new behavior is that we always treat clearing the input as
"stopped typing": not only in those cases where we already did,
but also in the case where we still have the same recipients.
(Which seems like probably the common case.)

That seems like the preferable behavior; indeed it's hard to see
the point of the "compose_empty" logic if restricted to the other
cases.  It also makes the interface simpler.

Those two properties don't seem like a coincidence, either: the
complicated interface made it difficult to unpack exactly what
logic we actually had, which made it easy for surprising wrinkles
to hang out indefinitely.
2019-10-24 14:56:56 -07:00
..
assets styles: Finish removing manual antialiasing configuration. 2019-08-30 14:51:52 -07:00
audio notifications: Add a setting for changing the notification sound. 2018-12-09 21:25:30 -08:00
generated
html HTML validation: Remove xmlns:svg attribute. 2018-07-09 09:45:42 +05:30
images webhooks: Add Harbor webhook integration. 2019-10-21 15:51:35 -07:00
js typing_status: Combine two parameters into one, with a maybe-type. 2019-10-24 14:56:56 -07:00
shared typing_status: Combine two parameters into one, with a maybe-type. 2019-10-24 14:56:56 -07:00
styles css: Fix azuread-wrapper name. 2019-10-21 15:40:27 -07:00
templates docs: Remove beta tag on email address visibility. 2019-10-21 16:13:04 -07:00
third bootstrap: Change tooltip html default to false. 2019-09-19 20:53:10 -07:00
.gitignore generate-custom-icon-webfont: Replace with webpack webfonts-loader. 2019-07-18 12:00:00 -07:00
favicon.ico