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:
parent
82a9c1e522
commit
1a838b26bd
3 changed files with 15 additions and 9 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue