Skip to content

Commit 8de60e4

Browse files
committed
Do give option to remove there own device
1 parent 9e7a61c commit 8de60e4

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

lib/core/widgets/user_devices.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class UserDevices extends HookConsumerWidget {
2020
}
2121
final userDevices = user.legacyUserData.devices.toList();
2222
final myDeviceId = user.legacyUserData.deviceID;
23-
2423
return AppCard(
2524
padding: EdgeInsets.zero,
2625
child: ListView.separated(
@@ -31,7 +30,7 @@ class UserDevices extends HookConsumerWidget {
3130
separatorBuilder: (context, index) => const DividerSpace(),
3231
itemBuilder: (context, index) {
3332
final e = userDevices[index];
34-
return _buildRow(e, ref, context, myDeviceId != e.name);
33+
return _buildRow(e, ref, context, myDeviceId != e.deviceId);
3534
},
3635
),
3736
);

lib/features/auth/confirm_email.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class ConfirmEmail extends HookConsumerWidget {
137137
(_) {
138138
context.hideLoadingDialog();
139139
//refresh user data to pick up the new email
140-
ref.read(homeProvider.notifier).refreshUser();
140+
ref.read(homeProvider.notifier).fetchUserData();
141141
AppDialog.dialog(
142142
context: context,
143143
title: 'change_email'.i18n,

0 commit comments

Comments
 (0)