Merge pull request #5361 from ByteHamster/mark-non-new

Only change item state if it is actually in the inbox
This commit is contained in:
ByteHamster 2021-08-28 10:54:30 +02:00 committed by GitHub
commit ddae5e2278
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -33,8 +33,9 @@ public class RemoveFromInboxSwipeAction implements SwipeAction {
@Override
public void performAction(FeedItem item, Fragment fragment, FeedItemFilter filter) {
FeedItemMenuHandler.markReadWithUndo(fragment,
item, FeedItem.UNPLAYED, willRemove(filter));
if (item.isNew()) {
FeedItemMenuHandler.markReadWithUndo(fragment, item, FeedItem.UNPLAYED, willRemove(filter));
}
}
@Override