Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

339 B
Raw Blame
import "package:photos/core/configuration.dart";
import "package:photos/service_locator.dart";

extension UserConfig on Configuration {
  int getUserIDV2() {
    final int? userID = getUserID();
    if (userID == null && !isLocalGalleryMode) {
      throw StateError("Missing user ID in online mode");
    }
    return userID ?? -1;
  }
}