neilalexander / seaglass

A truly native Matrix client for macOS - written in Swift/Cocoa, with E2E encryption support
Other
529 stars 34 forks source link

Inline images are not using thumbnails #58

Open neilalexander opened 6 years ago

neilalexander commented 6 years ago

Currently, when an m.room.message of type m.image is rendered, the full resolution file is downloaded. This means that potentially huge images are scaled down for drawing inline, which causes Seaglass to feel sluggish when resizing/scrolling. (The same was true before the avatars were switched to thumbnails.)

Need to switch to thumbnails for this and only download the full resolution image when actually needed.

neilalexander commented 6 years ago

This still needs some visual feedback that a download is taking place, and some checks to make sure a download isn't already in progress, but it is a start.