feat: Implement updated receive share logic

This commit is contained in:
Anton Stubenbord
2023-10-02 23:59:42 +02:00
parent 653344c9ee
commit 37ed8bbb04
47 changed files with 1695 additions and 730 deletions

View File

@@ -47,8 +47,8 @@ class HomeShellWidget extends StatelessWidget {
builder: (context, settings) {
final currentUserId = settings.loggedInUserId;
if (currentUserId == null) {
// This is the case when the current user logs out of the app.
return SizedBox.shrink();
// This is currently the case (only for a few ms) when the current user logs out of the app.
return const SizedBox.shrink();
}
final apiVersion = ApiVersion(paperlessApiVersion);
return ValueListenableBuilder(
@@ -57,8 +57,6 @@ class HomeShellWidget extends StatelessWidget {
.listenable(keys: [currentUserId]),
builder: (context, box, _) {
final currentLocalUser = box.get(currentUserId)!;
print(currentLocalUser.paperlessUser.canViewDocuments);
print(currentLocalUser.paperlessUser.canViewTags);
return MultiProvider(
key: ValueKey(currentUserId),
providers: [
@@ -195,8 +193,8 @@ class HomeShellWidget extends StatelessWidget {
context.read(),
),
),
Provider(
create: (context) => TaskStatusCubit(
ChangeNotifierProvider(
create: (context) => PendingTasksNotifier(
context.read(),
),
),