Fix #1358 Categories created in web UI are not shown in Android app

Signed-off-by: Stefan Niedermann <info@niedermann.it>
This commit is contained in:
Stefan Niedermann 2021-09-30 14:35:28 +02:00
parent cb527367b0
commit 5997ae57f6
2 changed files with 3 additions and 2 deletions

View file

@ -175,7 +175,7 @@ public interface NoteDao {
/**
* used by: {@link it.niedermann.owncloud.notes.persistence.NotesServerSyncTask#pullRemoteChanges()} update only, if not modified locally (i.e. STATUS="") and if modified remotely (i.e. any (!) column has changed)
*/
@Query("UPDATE NOTE SET title = :title, modified = :modified, favorite = :favorite, etag = :eTag, content = :content, status = '', excerpt = :excerpt " +
@Query("UPDATE NOTE SET title = :title, modified = :modified, favorite = :favorite, etag = :eTag, content = :content, status = '', excerpt = :excerpt, category = :category " +
"WHERE id = :id AND status = '' AND (title != :title OR modified != :modified OR favorite != :favorite OR category != :category OR (eTag IS NULL OR eTag != :eTag) OR content != :content)")
int updateIfNotModifiedLocallyAndAnyRemoteColumnHasChanged(long id, Long modified, String title, boolean favorite, String category, String eTag, String content, String excerpt);

View file

@ -1 +1,2 @@
- 🐞 Consistent timeouts when syncing (#761)
- 🐞 Consistent timeouts when syncing (#761)
- 🐞 Categories created in web UI are not shown in Android app (#1358)