mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
Also, add a new notification sound, "ding". It comes from https://freesound.org, where the original Zulip notification sound comes from as well. In the future, new sounds can be added by adding audio files to the `static/audio/notification_sounds` directory. Tweaked significantly by tabbott: * Avoided removing static/audio/zulip.ogg, because that file is checked for by old versions of the desktop app. * Added a views check for the sound being valid + tests. * Added additional tests. * Restructured the test_events test to be cleaner. * Removed check_bool_or_string. * Increased max length of notification_sound. * Provide available_notification_sounds in events data set if global notifications settings are requested. Fixes #8051.
21 lines
494 B
Python
21 lines
494 B
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.11.6 on 2018-03-12 03:18
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('zerver', '0193_realm_email_address_visibility'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='userprofile',
|
|
name='notification_sound',
|
|
field=models.CharField(default='zulip', max_length=20),
|
|
),
|
|
]
|