mirror of https://github.com/zulip/zulip.git
001847ac5b
This commit adds the following: 1. A reaction model that consists of a user, a message and an emoji that are unique together (a user cannot react to a particular message more than once with the same emoji) 2. A reaction event that looks like: { 'type': 'reaction', 'op': 'add', 'message_id': 3, 'emoji_name': 'doge', 'user': { 'user_id': 1, 'email': 'hamlet@zulip.com', 'full_name': 'King Hamlet' } } 3. A new API endpoint, /reactions, that accepts POST requests to add a reaction to a message 4. A migration to add the new model to the database 5. Tests that check that (a) Invalid requests cannot be made (b) The reaction event body contains all the info (c) The reaction event is sent to the appropriate users (d) Reacting more than once fails It is still missing important features like removing emoji and fetching them alongside messages. |
||
---|---|---|
.. | ||
0001_initial.py | ||
0002_django_1_8.py | ||
0003_custom_indexes.py | ||
0004_userprofile_left_side_userlist.py | ||
0005_auto_20150920_1340.py | ||
0006_zerver_userprofile_email_upper_idx.py | ||
0007_userprofile_is_bot_active_indexes.py | ||
0008_preregistrationuser_upper_email_idx.py | ||
0009_add_missing_migrations.py | ||
0010_delete_streamcolor.py | ||
0011_remove_guardian.py | ||
0012_remove_appledevicetoken.py | ||
0013_realmemoji.py | ||
0014_realm_emoji_url_length.py | ||
0015_attachment.py | ||
0016_realm_create_stream_by_admins_only.py | ||
0017_userprofile_bot_type.py | ||
0018_realm_emoji_message.py | ||
0019_preregistrationuser_realm_creation.py | ||
0020_add_tracking_attachment.py | ||
0021_migrate_attachment_data.py | ||
0022_subscription_pin_to_top.py | ||
0023_userprofile_default_language.py | ||
0024_realm_allow_message_editing.py | ||
0025_realm_message_content_edit_limit.py | ||
0026_delete_mituser.py | ||
0027_realm_default_language.py | ||
0028_userprofile_tos_version.py | ||
0029_realm_subdomain.py | ||
0030_realm_org_type.py | ||
0031_remove_system_avatar_source.py | ||
0032_verify_all_medium_avatar_images.py | ||
0033_migrate_domain_to_realmalias.py | ||
0034_userprofile_enable_online_push_notifications.py | ||
0035_realm_message_retention_period_days.py | ||
0036_rename_subdomain_to_string_id.py | ||
0037_disallow_null_string_id.py | ||
0038_realm_change_to_community_defaults.py | ||
0039_realmalias_drop_uniqueness.py | ||
0040_realm_authentication_methods.py | ||
0041_create_attachments_for_old_messages.py | ||
0042_attachment_file_name_length.py | ||
0043_realm_filter_validators.py | ||
0044_reaction.py | ||
__init__.py |