comparison sat/core/constants.py @ 3223:163014f09bf4

plugin attach: handle large images resizing: if `C.MESS_KEY_ATTACHMENTS_RESIZE` flag is set for an attachment, it will be checked, and if it is a large image, a resized copy will be uploaded.
author Goffi <goffi@goffi.org>
date Sun, 22 Mar 2020 14:04:16 +0100
parents 439e2f88c3a9
children 6cf4bd6972c2
comparison
equal deleted inserted replaced
3222:653fa213d2f8 3223:163014f09bf4
134 MESS_KEY_TRUSTED = "trusted" 134 MESS_KEY_TRUSTED = "trusted"
135 135
136 MESS_KEY_ATTACHMENTS = "attachments" 136 MESS_KEY_ATTACHMENTS = "attachments"
137 MESS_KEY_ATTACHMENTS_MEDIA_TYPE = "media_type" 137 MESS_KEY_ATTACHMENTS_MEDIA_TYPE = "media_type"
138 MESS_KEY_ATTACHMENTS_PREVIEW = "preview" 138 MESS_KEY_ATTACHMENTS_PREVIEW = "preview"
139 MESS_KEY_ATTACHMENTS_RESIZE = "resize"
139 140
140 # File encryption algorithms 141 # File encryption algorithms
141 ENC_AES_GCM = "AES-GCM" 142 ENC_AES_GCM = "AES-GCM"
142 143
143 ## Chat ## 144 ## Chat ##