Page MenuHomePhorge

Use FileHandler for all images and avatars
Needs ReviewPublic

Authored by tusooa on Wed, Oct 16, 4:29 PM.
Tags
None
Referenced Files
F48089: D192.1729309578.diff
Thu, Oct 17, 8:46 PM
F48051: D192.1729307963.diff
Thu, Oct 17, 8:19 PM
F48008: D192.1729306159.diff
Thu, Oct 17, 7:49 PM
F47919: D192.1729302850.diff
Thu, Oct 17, 6:54 PM
Subscribers
None

Details

Reviewers
None
Group Reviewers
O1: the Kazv Project
Summary

This commit repurposes AvatarAdapter and creates a new component, ImageAdapter, which accept an mxc uri and display the image represented by it, through FileHandler. It provides caching for the images, thus improves loading speed and enhances metadata privacy. It also makes the client better prepared for authenticated media.

Type: add

Test Plan

Verify unit tests pass.

In the room list view, verify avatars can be displayed.

Change the order of two rooms with different avatars (e.g. by sending a message to a room), and verify that the avatars are displayed properly.

Open the sticker picker with lots of stickers, and open it again in another room. Verify that the stickers load much faster.

Diff Detail

Repository
rK kazv
Branch
tusooa/stacked
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 304
Build 596: GitLab CI for kazv
Build 595: arc lint + arc unit

Event Timeline

Please add a changelog type to the summary, using the following format:

Type: (add|remove|skip|security|fix)

tusooa removed a reviewer: servant.