mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
org setting: Add time limits for message deleting.
Add realm setting to set time limit for message deleitng. Set default value of message_content_delete_limit_seconds to 600 seconds(10 min). Thanks to Shubham Dhama for rebasing and reworking this. Some final edits also done by Tim Abbott. Fixes #7344.
This commit is contained in:
@@ -162,7 +162,9 @@ def fetch_initial_state_data(user_profile: UserProfile,
|
||||
state['realm_authentication_methods'] = realm.authentication_methods_dict()
|
||||
state['realm_allow_message_editing'] = realm.allow_message_editing
|
||||
state['realm_allow_community_topic_editing'] = realm.allow_community_topic_editing
|
||||
state['realm_allow_message_deleting'] = realm.allow_message_deleting
|
||||
state['realm_message_content_edit_limit_seconds'] = realm.message_content_edit_limit_seconds
|
||||
state['realm_message_content_delete_limit_seconds'] = realm.message_content_delete_limit_seconds
|
||||
state['realm_icon_url'] = realm_icon_url(realm)
|
||||
state['realm_icon_source'] = realm.icon_source
|
||||
state['max_icon_file_size'] = settings.MAX_ICON_FILE_SIZE
|
||||
|
||||
Reference in New Issue
Block a user