Merge pull request #1291 from krille-chan/krille/use-auth-media

feat: Use matrix authenticated media
This commit is contained in:
Krille-chan 2024-08-25 12:57:05 +02:00 committed by GitHub
commit 53b8b5290e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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(