mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
This is controlled through the admin tab and a new field in the Realms table. Notes: * The admin tab setting takes a value in minutes, whereas the backend stores it in seconds. * This setting is unused when allow_message_editing is false. * There is some generosity in how the limit is enforced. For instance, if the user sees the hovering edit button, we ensure they have at least 5 seconds to click it, and if the user gets to the message edit form, we ensure they have at least 10 seconds to make the edit, by relaxing the limit. * This commit also includes a countdown timer in the message edit form. Resolves #903.
20 lines
436 B
Python
20 lines
436 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import models, migrations
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('zerver', '0024_realm_allow_message_editing'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='realm',
|
|
name='message_content_edit_limit_seconds',
|
|
field=models.IntegerField(default=600),
|
|
),
|
|
]
|