Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(mobile): Fix "Live Images" and "Recently added" page #6030

Merged
merged 2 commits into from
Dec 28, 2023

Conversation

l0nax
Copy link
Contributor

@l0nax l0nax commented Dec 28, 2023

This PR resolves the error when going to the Live Images page on the mobile app.

The reason why some of the category pages do not work anymore on mobile is due to a change made with 1e99ba8: The server always expects a non-empty query:

const query = dto.q || dto.query;
if (!query) {
throw new Error('Missing query');
}

The behavior is the same with the Recently Added page.

And it seems that the recent parameter of the search API endpoint is now a no-op. Is this intentional?

Related #5971

@l0nax l0nax changed the title fix(mobile): Load assets on "Live-Images" page fix(mobile): Fix Live-Images and "Recently added" page Dec 28, 2023
@l0nax l0nax changed the title fix(mobile): Fix Live-Images and "Recently added" page fix(mobile): Fix "Live Images" and "Recently added" page Dec 28, 2023
Instead of requesting the server for the relevant entries, we can use
the local DB.

This change fixes loading errors when going to the "Live-Images" page.
It is similar to the work done with immich-app#5971.
@alextran1502 alextran1502 merged commit fd3a1a4 into immich-app:main Dec 28, 2023
19 of 20 checks passed
martabal pushed a commit that referenced this pull request Jan 9, 2024
* fix(mobile): Load assets on "Live-Images" page

Instead of requesting the server for the relevant entries, we can use
the local DB.

This change fixes loading errors when going to the "Live-Images" page.
It is similar to the work done with #5971.

* fix(mobile): Fix Recently added page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] 1.91 Error when open Recently Added, Videos or Live Photos (Android)
2 participants