Bugfix for different ID same URL Apps (#299)

This commit is contained in:
Imran Remtulla
2023-02-18 18:31:42 -05:00
parent 86131ae3ce
commit ea81b0e66e
4 changed files with 17 additions and 18 deletions

View File

@@ -182,7 +182,7 @@ class AppsProvider with ChangeNotifier {
// The former case should be handled (give the App its real ID), the latter is a security issue
var newInfo = await PackageArchiveInfo.fromPath(downloadedFile.path);
if (app.id != newInfo.packageName) {
if (apps[app.id] != null && !SourceProvider().isTempId(app.id)) {
if (apps[app.id] != null && !SourceProvider().isTempId(app)) {
throw IDChangedError();
}
var originalAppId = app.id;