zulip/zerver
Aastha Gupta dfde4fac85 invitations: Send 'invites_changed' event for invitations events.
Fixes #7665

In case of invitation events, 'invites_changed' event without
any real payload is sent to all the realm admins and the user.
The event is handled by reloading the list to view recent changes.

Commit tweaked by shubhamdhama:
* Send an `invite_changed` event when an user accept an invite.
    Also, added the test for the same.
* No need to delete the invite list in frontend, current logic
    handles the case when the invite data is changed properly.
* Extracted the common logic for sending an event into
    `notify_invites_changed`.
2018-07-13 18:00:06 +05:30
..
lib invitations: Send 'invites_changed' event for invitations events. 2018-07-13 18:00:06 +05:30
management Enable pycodestyle W605 (invalid escape sequence). 2018-07-03 16:54:46 +02:00
migrations models: Create delivery_email field in userprofile. 2018-07-12 12:30:20 +05:30
openapi api docs: Migrate POST /users/me/subscriptions to OpenAPI. 2018-07-03 20:15:34 +02:00
templatetags HTML validation: Remove obsolete attributes from <script>, <style>. 2018-07-13 10:27:23 +05:30
tests invitations: Send 'invites_changed' event for invitations events. 2018-07-13 18:00:06 +05:30
tornado requirements: Upgrade pyflakes to 2.0.0. 2018-05-24 11:31:36 -07:00
views alert words: Return the updated list when adding/removing words. 2018-07-13 01:01:00 +05:30
webhooks Enable pycodestyle W605 (invalid escape sequence). 2018-07-03 16:54:46 +02:00
worker registration: Use tokenized noreply address in user invite. 2018-06-23 12:03:30 -07:00
__init__.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
apps.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
context_processors.py custom profile fields: Extract a separate various for whether enabled. 2018-06-07 11:35:04 -07:00
decorator.py 2FA: Add zulip_otp_required decorator. 2018-05-23 15:46:57 -07:00
filters.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
forms.py signup: Prevent users from signing up with email containing +. 2018-06-23 12:03:30 -07:00
logging_handlers.py test_logging_handlers: Mock out git describe because can be slow. 2018-03-23 18:24:51 -07:00
middleware.py zerver: Change use of typing.Text to str. 2018-05-12 15:22:39 -07:00
models.py models: Create delivery_email field in userprofile. 2018-07-12 12:30:20 +05:30
signals.py auth: Added time conversion in new login emails. 2018-06-07 08:40:22 -07:00
static_header.txt Update static_header.txt with new license information. 2016-08-13 00:37:21 -07:00