mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 02:07:57 -06:00
feat: Make account switching work again
This commit is contained in:
@@ -42,7 +42,7 @@ class PaperlessApiFactoryImpl implements PaperlessApiFactory {
|
||||
PaperlessUserApi createUserApi(Dio dio, {required int apiVersion}) {
|
||||
if (apiVersion == 3) {
|
||||
return PaperlessUserApiV3Impl(dio);
|
||||
} else if (apiVersion == 1 || apiVersion == 2) {
|
||||
} else if (apiVersion < 3) {
|
||||
return PaperlessUserApiV2Impl(dio);
|
||||
}
|
||||
throw Exception("API $apiVersion not supported.");
|
||||
|
||||
Reference in New Issue
Block a user