build: (deps): bump archive from 3.6.1 to 4.0.7

Bumps [archive](https://github.com/brendan-duncan/archive) from 3.6.1 to 4.0.7.
- [Changelog](https://github.com/brendan-duncan/archive/blob/main/CHANGELOG.md)
- [Commits](https://github.com/brendan-duncan/archive/commits)

---
updated-dependencies:
- dependency-name: archive
  dependency-version: 4.0.7
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot] 2025-07-30 21:14:06 +00:00 committed by krille-chan
commit 1a838b26bd
No known key found for this signature in database
3 changed files with 15 additions and 9 deletions

View file

@ -286,9 +286,9 @@ class EmotesSettingsController extends State<EmotesSettings> {
if (result.isEmpty) return null;
final buffer = InputStream(await result.first.readAsBytes());
final buffer = InputMemoryStream(await result.first.readAsBytes());
final archive = ZipDecoder().decodeBuffer(buffer);
final archive = ZipDecoder().decodeStream(buffer);
return archive;
},
@ -338,8 +338,6 @@ class EmotesSettingsController extends State<EmotesSettings> {
'${pack.pack.displayName ?? client.userID?.localpart ?? 'emotes'}.zip';
final output = ZipEncoder().encode(archive);
if (output == null) return;
MatrixFile(
name: fileName,
bytes: Uint8List.fromList(output),