uploads: Show used upload space in attachments UI.

This commit is contained in:
Vishnu Ks
2019-01-17 16:35:09 +05:30
committed by Tim Abbott
parent cc4774f371
commit a288cfc43a
10 changed files with 66 additions and 24 deletions

View File

@@ -5221,6 +5221,7 @@ def notify_attachment_update(user_profile: UserProfile, op: str,
'type': 'attachment',
'op': op,
'attachment': attachment_dict,
"upload_space_used": user_profile.realm.currently_used_upload_space_bytes(),
}
send_event(user_profile.realm, event, [user_profile.id])