TF-2667 Use Username replace UserProfile

This commit is contained in:
dab246
2024-03-05 10:02:08 +07:00
committed by Dat H. Pham
parent de4849f551
commit c9fed1fa41
36 changed files with 148 additions and 245 deletions
@@ -80,9 +80,10 @@ class ContactView extends GetWidget<ContactController> {
),
if (PlatformInfo.isWeb)
Obx(() {
final userEmail = controller.userProfile.value?.email;
if (userEmail != null && userEmail.isNotEmpty) {
final userEmailAddress = EmailAddress(AppLocalizations.of(context).me, controller.userProfile.value?.email);
if (controller.session?.username.value.isNotEmpty == true) {
final userEmailAddress = EmailAddress(
AppLocalizations.of(context).me,
controller.session?.username.value);
final fromMeSuggestionEmailAddress = SuggestionEmailAddress(userEmailAddress, state: SuggestionEmailState.valid);
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 4),