feat: Use matrix authenticated media

This commit is contained in:
Krille 2024-08-20 09:27:00 +02:00 committed by krille-chan
commit 158a6855c3
No known key found for this signature in database
7 changed files with 134 additions and 115 deletions

View file

@ -330,8 +330,11 @@ class EmotesSettingsController extends State<EmotesSettings> {
for (final entry in pack.images.entries) {
final emote = entry.value;
final name = entry.key;
final url = emote.url.getDownloadLink(client);
final response = await get(url);
final url = await emote.url.getDownloadUri(client);
final response = await get(
url,
headers: {'authorization': 'Bearer ${client.accessToken}'},
);
archive.addFile(
ArchiveFile(