Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix cast review issues

Priyanshu Dangare6d5d51add53c
diff --git a/mobile/apps/photos/lib/ui/settings/cast/cast_settings_page.dart b/mobile/apps/photos/lib/ui/settings/cast/cast_settings_page.dart
index 91bf98483c..eba8b1eed7 100644
--- a/mobile/apps/photos/lib/ui/settings/cast/cast_settings_page.dart
+++ b/mobile/apps/photos/lib/ui/settings/cast/cast_settings_page.dart
@@ -72,7 +72,7 @@ class _CastSettingsPageState extends State<CastSettingsPage> {
strokeWidth: 1.6,
),
onTap: () async {
- await _revokeSession(gw, session, title);
+ await _revokeSession(gw, session);
},
shouldShowSuccessConfirmation: false,
),
@@ -92,7 +92,6 @@ class _CastSettingsPageState extends State<CastSettingsPage> {
Future<void> _revokeSession(
CastGateway gw,
CastInfo session,
- String collectionTitle,
) async {
final l10n = AppLocalizations.of(context);
final result = await showChoiceDialog(
diff --git a/server/pkg/api/cast.go b/server/pkg/api/cast.go
index c8d78c7ca8..ca078434cd 100644
--- a/server/pkg/api/cast.go
+++ b/server/pkg/api/cast.go
@@ -71,7 +71,7 @@ func (h *CastHandler) DeleteDevice(c *gin.Context) {
handler.Error(c, stacktrace.Propagate(err, "failed to parse collection ID"))
return
}
- if err := h.Ctrl.CastRepo.RevokeForGivenUserAndCollectionAndDevice(
+ if err := h.Ctrl.DeleteDevice(
c,
userID,
collectionID,