Update Freshrss folder remoteId when modifying its name

This commit is contained in:
Shinokuni 2019-08-24 21:19:14 +02:00
parent 9a70d76407
commit 5656817dea
1 changed files with 4 additions and 0 deletions

View File

@ -138,6 +138,10 @@ public class FreshRSSRepository extends ARepository<FreshRSSAPI> {
@Override
public Completable updateFolder(Folder folder) {
return api.updateFolder(account.getWriteToken(), folder.getRemoteId(), folder.getName())
.andThen(Completable.create(emitter -> {
folder.setRemoteId("user/-/label/" + folder.getName());
emitter.onComplete();
}))
.andThen(super.updateFolder(folder));
}