Skip to content

Implemented delete listen#727

Merged
07jasjeet merged 11 commits intometabrainz:mainfrom
anuj990:implemented-delete-listen
Mar 14, 2026
Merged

Implemented delete listen#727
07jasjeet merged 11 commits intometabrainz:mainfrom
anuj990:implemented-delete-listen

Conversation

@anuj990
Copy link
Copy Markdown
Contributor

@anuj990 anuj990 commented Mar 2, 2026

This pr Fixes #615
Implemented Delete Listen
Added DeleteListen data class,implemented ListensRepositoryImpl and ListensService ,
instant Listens remove,
Screen Recording

WhatsApp.Video.2026-03-02.at.4.57.54.PM.mp4

Copy link
Copy Markdown
Collaborator

@07jasjeet 07jasjeet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as implementation goes, we should not store which listens were deleted. We should keep it similar to desktop and show a pop up saying that the listen is scheduled for deletion. Refreshing should show the listen again.

Also, I think we should follow up on progress of https://tickets.metabrainz.org/browse/LB-1141 and see if staged_for_deletion key is sent in Listen metadata.

Copy link
Copy Markdown
Contributor Author

@anuj990 anuj990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@07jasjeet
i have made the marked changes now this implementation relies on server response

},
goToArtistPage = goToArtistPage,
onClick = {
onTrackClick(playlist)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, unnecessary/un-related change. Its always preferred to have named arguments.

snackbarState.showSnackbar(it)
},
onClick = {
metadata.trackMetadata?.let { playListen(it) }
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@07jasjeet i have pushed marked changes

Copy link
Copy Markdown
Collaborator

@07jasjeet 07jasjeet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Great work!

@07jasjeet 07jasjeet merged commit 0c8510e into metabrainz:main Mar 14, 2026
1 check failed
@07jasjeet
Copy link
Copy Markdown
Collaborator

Thanks for the contribution @anuj990!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Delete Listens

2 participants