Steve Howell
c233bb53fd
node tests: Use zrequire in typeahead_helper.js.
2017-11-08 12:24:17 -08:00
Steve Howell
c38081b528
node tests: Use zrequire in topic_generator.js.
2017-11-08 12:24:17 -08:00
Steve Howell
de341e88c5
node tests: Use zrequire in timerender.js.
2017-11-08 12:24:17 -08:00
Steve Howell
83c9b1134e
node tests: Use zrequire in templates.js.
2017-11-08 12:24:17 -08:00
Steve Howell
4ef8df15c9
node tests: Use zrequire in subs.js.
2017-11-08 12:24:17 -08:00
Steve Howell
b3bfca9c2e
node tests: Use zrequire in stream_sort.js.
2017-11-08 12:24:17 -08:00
Steve Howell
c12d46284f
node tests: Use zrequire in stream_events.js.
2017-11-08 12:24:17 -08:00
Steve Howell
2c1a855cae
node tests: Use zrequire in settings_org.js.
2017-11-08 12:24:17 -08:00
Steve Howell
9489c5d0a8
node tests: Use zrequire in settings_bots.js.
2017-11-08 12:24:17 -08:00
Steve Howell
f720aad260
node tests: Use zrequire in server_events.js.
2017-11-08 12:24:17 -08:00
Steve Howell
19ca4bff82
node tests: Use zrequire in search_suggestion.js.
2017-11-08 12:24:17 -08:00
Steve Howell
5db2f3e087
node tests: Use zrequire in reactions.js.
2017-11-08 12:24:17 -08:00
Steve Howell
23313f2ddf
node tests: Use zrequire in presence.js.
2017-11-08 12:24:17 -08:00
Steve Howell
14631b8748
node tests: Use zrequire in password.js.
2017-11-08 12:24:17 -08:00
Steve Howell
65dc6a0975
node tests: Use zrequire in narrow_state.js.
2017-11-08 12:24:17 -08:00
Steve Howell
2fac1fe6c9
node tests: Use zrequire in muting.js.
2017-11-08 12:24:17 -08:00
Steve Howell
8f0b396140
node tests: Use zrequire in message_store.js.
2017-11-08 12:24:17 -08:00
Steve Howell
180f910764
node tests: Use zrequire in message_list_view.js.
2017-11-08 12:24:17 -08:00
Steve Howell
98c4ee3175
node tests: Use zrequire in message_list.js.
2017-11-08 12:24:17 -08:00
Steve Howell
84f547004c
node tests: Use zrequire in message_edit.js.
2017-11-08 12:24:17 -08:00
Steve Howell
ba79558257
node tests: Use zrequire in markdown.js.
2017-11-08 12:24:17 -08:00
Steve Howell
914cf175c0
node tests: Use zrequire in i18n.js.
2017-11-08 12:24:17 -08:00
Steve Howell
1ba0315aad
node tests: Use zrequire in hashchange.js.
2017-11-08 12:24:17 -08:00
Steve Howell
b2775506a4
node tests: Use zrequire in filter.js.
2017-11-08 12:24:17 -08:00
Steve Howell
ad59600062
node tests: Use zrequire in emoji_picker.js.
2017-11-08 12:24:17 -08:00
Steve Howell
c307356d33
node tests: Use zrequire in emoji.js.
2017-11-08 12:24:17 -08:00
Steve Howell
f6f227d089
node tests: Use zrequire in drafts.js.
2017-11-08 12:24:17 -08:00
Steve Howell
15e21f0cd1
node tests: Use zrequire in dispatch.js.
2017-11-08 12:24:17 -08:00
Steve Howell
2ea4a20bc5
node tests: Use zrequire in composebox_typeahead.js.
2017-11-08 12:24:17 -08:00
Steve Howell
3aa2c22370
node tests: Use zrequire in compose_fade.js.
2017-11-08 12:24:17 -08:00
Steve Howell
a7a6f68c98
node tests: Use zrequire in compose_actions.js.
2017-11-08 12:24:17 -08:00
Steve Howell
4d814c03d4
node tests: Use zrequire in compose.js.
2017-11-08 12:24:17 -08:00
Steve Howell
e63dd59065
node tests: Use zrequire in bot_data.js.
2017-11-08 12:24:17 -08:00
Steve Howell
640b0d5653
node tests: Use zrequire in alert_words.js.
2017-11-08 12:24:17 -08:00
Steve Howell
b0665815d2
Use stub_i18n in templates.js.
2017-11-08 12:24:17 -08:00
Steve Howell
eff9f617ef
node tests: Use stubbed i18n in message_list.js.
2017-11-08 12:24:17 -08:00
Tim Abbott
417f92c8e1
markdown: Remove now-obsolete bugdown_matches_marked.
...
Fixes #7099 .
2017-11-07 12:01:57 -08:00
Steve Howell
f105c480b3
Calculate gravatar hashes on the webapp client.
...
This change prepares us to have the server send avatar_url
of None when somebody wants a gravatar avatar (as opposed
to a user-uploaded one).
Subsequent commits will change behavior on both the server
and client to have this happen. So this commit has no-op
code for now, but it will soon use the fallback-to-gravatar
logic.
2017-11-07 10:36:02 -08:00
Steve Howell
aa61db9301
Change warn -> error in people.report_late_add().
...
This commit is easy to revert if we want to tone down errors
to warnings for the short term, while our codepath still does
proper handling for adding users when they come in messages.
2017-11-07 09:51:10 -08:00
Steve Howell
02a011d627
Add people.report_late_add().
...
We want to know when users are added after page load, as it can
be a symptom of stray messages leaking in or live-update problems,
etc.
Fixes #7120
2017-11-07 09:51:10 -08:00
Steve Howell
aebfdaa8ed
refactor: Use early-return in extract_people_from_message().
2017-11-07 09:51:10 -08:00
Steve Howell
294a1fb8f8
refactor: Extract people.maybe_incr_recipient_count().
...
This logic used to be in extract_people_from_message(), but
we are deprecating extract_people_from_message(), whereas
the maybe_incr_recipient_count() function has logic that we
want to keep.
2017-11-07 09:51:10 -08:00
Steve Howell
5271241b24
Read page_params.realm_non_active_users() at page load.
...
This change is the first step in making it so that we load
non-active users at page load time in the webapp.
Before this change, we would reactively handle deactivated
users when we saw them as senders in messages. Subsequent
changes will make it a warning if we see unknown senders
in messages.
2017-11-07 09:51:10 -08:00
Steve Howell
b492f3569a
tests: Extract node_tests/people_errors.js.
...
This is mostly a pure extraction, but we needed to duplicate
a bit of setup from people.js, and I added an assertion
for warning about "No user_id provided".
2017-11-07 09:51:10 -08:00
Steve Howell
48b18e4a38
Only show active realm users in compose typeahead.
...
There's no reason to include deactivated users in compose
typeahead, since we won't let the compose happen.
This also removes cross-realm bots from the typeahead, which
is mostly driven by not having a convenient function to include
them, but also it's rare that it makes sense to talk to a cross-realm
bot unless replying to it.
2017-11-07 09:51:10 -08:00
rht
77f32a1e0c
frontend_tests: Use python 3 syntax for typing.
2017-11-04 19:57:55 -07:00
Cynthia Lin
f63585bd6d
hotkeys: Ensure navigation hotkeys do not work while overlay is open.
...
Fixes #7123 .
2017-11-03 15:38:10 -07:00
Tim Abbott
493529d981
compose: Fix node test failure from video link integration.
...
It's pretty annoying that we're seeing this several hours after the
original code was merged.
2017-10-30 23:06:04 -07:00
Jack Zhang
fef828a037
compose: Add video link button, powered by Jitsi.
2017-10-30 17:13:47 -07:00
Tim Abbott
bb80c0cc24
compose_state: Extract insert_syntax_and_focus.
...
This moves the existing emoji picker code to a new library.
2017-10-30 17:12:56 -07:00