Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
models: Add a new field controlling drafts synchronization.
Hemanth V. Alluri08e9e482055a
diff --git a/zerver/migrations/0335_add_draft_sync_field.py b/zerver/migrations/0335_add_draft_sync_field.pynew file mode 100644index 00000000000..478ffa9ccc0--- /dev/null+++ b/zerver/migrations/0335_add_draft_sync_field.py@@ -0,0 +1,23 @@+# Generated by Django 3.2.5 on 2021-07-23 04:46++from django.db import migrations, models+++class Migration(migrations.Migration):++ dependencies = [+ ("zerver", "0334_email_notifications_batching_period"),+ ]++ operations = [+ migrations.AddField(+ model_name="realmuserdefault",+ name="enable_drafts_synchronization",+ field=models.BooleanField(default=True),+ ),+ migrations.AddField(+ model_name="userprofile",+ name="enable_drafts_synchronization",+ field=models.BooleanField(default=True),+ ),+ ]diff --git a/zerver/models.py b/zerver/models.pyindex 759071f7412..dfdd0fb20af 100644--- a/zerver/models.py+++ b/zerver/models.py@@ -1331,6 +1331,9 @@ class UserBaseSettings(models.Model):realm_name_in_notifications: bool = models.BooleanField(default=False)presence_enabled: bool = models.BooleanField(default=True)+ # Whether or not the user wants to sync their drafts.+ enable_drafts_synchronization = models.BooleanField(default=True)+# Define the types of the various automatically managed propertiesproperty_types = dict(color_scheme=int,