Populate image/audio attachment body with a filename, not with text
Various clients (including newer versions of Element Web), do not like it when the `body` field of the attachment is not a file name. For images, a preview may not be shown and downloading the attachment may suggest that the whole long text is used as a filename (which is odd). There is value (improved accessibility, etc.) in adding better descriptions (especially to generated images), but given that it's currently problematic, I'm getting rid of it. It's better and safer if we stick to using filenames.
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
pub fn alternate_body_text() -> String {
|
||||
"Generated speech from text".to_owned()
|
||||
}
|
||||
|
||||
pub fn redaction_reason_done() -> &'static str {
|
||||
"Done with speech-to-text"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user