Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: only fetch billing info when current user is the workspace owner (#6847)
Nathan.fooo1b4a72350093
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/members/workspace_member_bloc.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/members/workspace_member_bloc.dartindex 374be63abe..c9fcb34204 100644--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/members/workspace_member_bloc.dart+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/members/workspace_member_bloc.dart@@ -1,6 +1,7 @@import 'dart:async';import 'package:appflowy/core/helpers/url_launcher.dart';+import 'package:appflowy/shared/af_role_pb_extension.dart';import 'package:appflowy/user/application/user_service.dart';import 'package:appflowy_backend/dispatch/dispatch.dart';import 'package:appflowy_backend/log.dart';@@ -44,6 +45,10 @@ class WorkspaceMemberBloc(e) => [],);final myRole = _getMyRole(members);++ if (myRole.isOwner) {+ unawaited(_fetchWorkspaceSubscriptionInfo());+ }emit(state.copyWith(members: members,@@ -215,8 +220,6 @@ class WorkspaceMemberBloc_workspaceId = '';});}-- unawaited(_fetchWorkspaceSubscriptionInfo());}// We fetch workspace subscription info lazily as it's not needed in the first