# If it's not present in the unified_reactions map, it's a realm emoji.
reaction.emoji_code=reaction.emoji_name
ifreaction.emoji_name=='zulip':
# `:zulip:` emoji is a zulip special custom emoji.
reaction.reaction_type='zulip_extra_emoji'
else:
reaction.reaction_type='realm_emoji'
reaction.save()
classMigration(migrations.Migration):
dependencies=[
('zerver','0096_add_password_required'),
]
operations=[
migrations.AddField(
model_name='reaction',
name='emoji_code',
field=models.TextField(default='unset'),
preserve_default=False,
),
migrations.AddField(
model_name='reaction',
name='reaction_type',
field=models.CharField(choices=[('unicode_emoji','Unicode emoji'),('realm_emoji','Realm emoji'),('zulip_extra_emoji','Zulip extra emoji')],default='unicode_emoji',max_length=30),