feat: Use matrix authenticated media
This commit is contained in:
parent
f17b09f56c
commit
158a6855c3
7 changed files with 134 additions and 115 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue