Skip to content

Commit

Permalink
Dropping multiple files onto deltachat now sends images as compressed…
Browse files Browse the repository at this point in the history
… images instead of uncompressed files

closes #4219
  • Loading branch information
Simon-Laux committed Oct 27, 2024
1 parent ffa54d6 commit f0e4cc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
## Changed
- style: avoid scrolling to account list items such that they're at the very edge of the list #4252
- Update local help (2024-10-25)
- Dropping multiple files onto deltachat now sends images as compressed images instead of uncompressed files

## Fixed
- image thumbnails not showing in chat list #4247
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,12 @@ export default function MessageListAndComposer({ accountId, chat }: Props) {

for (const file of sanitizedFileList) {
const path = await writeTempFileFromFile(file)
const msgViewType: Viewtype = file.type.startsWith('image')
? 'Image'
: 'File'
sendMessage(accountId, chat.id, {
file: path,
viewtype: 'File',
viewtype: msgViewType,
}).then(() => {
// start sending other files, don't wait until last file is sent
runtime.removeTempFile(path)
Expand Down

0 comments on commit f0e4cc5

Please sign in to comment.