mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: enable collaborator (#5051)
This commit is contained in:
parent
382ce827c1
commit
0ace832374
@ -29,14 +29,14 @@ class DocumentCollaboratorsBloc
|
|||||||
initial: () async {
|
initial: () async {
|
||||||
final result = await getIt<AuthService>().getUser();
|
final result = await getIt<AuthService>().getUser();
|
||||||
final userProfile = result.fold((s) => s, (f) => null);
|
final userProfile = result.fold((s) => s, (f) => null);
|
||||||
if (userProfile == null ||
|
|
||||||
userProfile.authenticator == AuthenticatorPB.Local) {
|
|
||||||
emit(
|
emit(
|
||||||
state.copyWith(shouldShowIndicator: false),
|
state.copyWith(
|
||||||
|
shouldShowIndicator:
|
||||||
|
userProfile?.authenticator != AuthenticatorPB.Local,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
return;
|
|
||||||
}
|
|
||||||
final deviceId = ApplicationInfo.deviceId;
|
final deviceId = ApplicationInfo.deviceId;
|
||||||
|
if (userProfile != null) {
|
||||||
_listener.start(
|
_listener.start(
|
||||||
onDocAwarenessUpdate: (states) {
|
onDocAwarenessUpdate: (states) {
|
||||||
add(
|
add(
|
||||||
@ -48,6 +48,7 @@ class DocumentCollaboratorsBloc
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
update: (userProfile, deviceId, states) {
|
update: (userProfile, deviceId, states) {
|
||||||
final collaborators = _buildCollaborators(
|
final collaborators = _buildCollaborators(
|
||||||
|
Loading…
Reference in New Issue
Block a user