Compare commits

..

No commits in common. "15ac93c737804da0cda11c83b2cee342542a75a3" and "c4e177dd7e80311d42acf3aae4b1fb36f66e3d52" have entirely different histories.

View File

@ -300,12 +300,10 @@ class _MePage2State extends State<MePage2> {
Widget _buildMenuCard2() {
final userProfile = context.watch<SocialChatUserProfileManager>();
final items = <_MenuRowData>[];
final hasCurrentUser = userProfile.currentUserProfile != null;
final isAgent = userProfile.userIdentity?.agent ?? false;
// 1. /
if (hasCurrentUser) {
if (isAgent) {
// 1.
if (userProfile.userIdentity?.anchor ?? false) {
if (userProfile.userIdentity?.agent ?? false) {
items.add(
_MenuRowData(
title: SCAppLocalizations.of(context)!.agentCenter,