register api: Rename max_logo_file_size.

Renaming `max_logo_file_size` to `max_logo_file_size_mib`
reflecting the file size in mebibyte and update the frontend.
This commit is contained in:
Gaurav Pandey
2021-05-25 22:19:36 +05:30
committed by Tim Abbott
parent 531cf041f1
commit 1da818f848
4 changed files with 7 additions and 4 deletions

View File

@@ -81,7 +81,7 @@ def add_realm_logo_fields(state: Dict[str, Any], realm: Realm) -> None:
state["realm_logo_source"] = get_realm_logo_source(realm, night=False)
state["realm_night_logo_url"] = get_realm_logo_url(realm, night=True)
state["realm_night_logo_source"] = get_realm_logo_source(realm, night=True)
state["max_logo_file_size"] = settings.MAX_LOGO_FILE_SIZE
state["max_logo_file_size_mib"] = settings.MAX_LOGO_FILE_SIZE
def always_want(msg_type: str) -> bool: