reactions: Store the emoji codepoint in the database.

This is the first part of a larger migration to convert Zulip's
reactions storage to something based on the codepoint, not the emoji
name that the user typed in, so that we don't need to worry about
changes in the names we're using breaking the emoji storage.
This commit is contained in:
Tim Abbott
2017-04-30 22:29:56 -07:00
parent c5f0478374
commit 9081f2cf44
9 changed files with 198 additions and 43 deletions

View File

@@ -251,6 +251,8 @@ class ReactionDict(object):
def build_dict_from_raw_db_row(row):
# type: (Dict[str, Any]) -> Dict[str, Any]
return {'emoji_name': row['emoji_name'],
'emoji_code': row['emoji_code'],
'reaction_type': row['reaction_type'],
'user': {'email': row['user_profile__email'],
'id': row['user_profile__id'],
'full_name': row['user_profile__full_name']}}