mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
This commit makes it possible for users to control the email notifications for messages sent to followed topics via a global notification setting. Although there is no support for configuring this setting through the UI yet. Add five new fields to the UserBaseSettings class for the "followed topic notifications" feature, similar to stream notifications. But this commit consists only of the implementation of email notifications.
63 lines
2.2 KiB
Python
63 lines
2.2 KiB
Python
# Generated by Django 4.2.1 on 2023-05-24 11:09
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("zerver", "0452_realmauditlog_extra_data_json"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="realmuserdefault",
|
|
name="enable_followed_topic_audible_notifications",
|
|
field=models.BooleanField(default=True),
|
|
),
|
|
migrations.AddField(
|
|
model_name="realmuserdefault",
|
|
name="enable_followed_topic_desktop_notifications",
|
|
field=models.BooleanField(default=True),
|
|
),
|
|
migrations.AddField(
|
|
model_name="realmuserdefault",
|
|
name="enable_followed_topic_email_notifications",
|
|
field=models.BooleanField(default=True),
|
|
),
|
|
migrations.AddField(
|
|
model_name="realmuserdefault",
|
|
name="enable_followed_topic_push_notifications",
|
|
field=models.BooleanField(default=True),
|
|
),
|
|
migrations.AddField(
|
|
model_name="realmuserdefault",
|
|
name="enable_followed_topic_wildcard_mentions_notify",
|
|
field=models.BooleanField(default=True),
|
|
),
|
|
migrations.AddField(
|
|
model_name="userprofile",
|
|
name="enable_followed_topic_audible_notifications",
|
|
field=models.BooleanField(default=True),
|
|
),
|
|
migrations.AddField(
|
|
model_name="userprofile",
|
|
name="enable_followed_topic_desktop_notifications",
|
|
field=models.BooleanField(default=True),
|
|
),
|
|
migrations.AddField(
|
|
model_name="userprofile",
|
|
name="enable_followed_topic_email_notifications",
|
|
field=models.BooleanField(default=True),
|
|
),
|
|
migrations.AddField(
|
|
model_name="userprofile",
|
|
name="enable_followed_topic_push_notifications",
|
|
field=models.BooleanField(default=True),
|
|
),
|
|
migrations.AddField(
|
|
model_name="userprofile",
|
|
name="enable_followed_topic_wildcard_mentions_notify",
|
|
field=models.BooleanField(default=True),
|
|
),
|
|
]
|