mirror of https://github.com/readrops/Readrops.git
Update Freshrss folder remoteId when modifying its name
This commit is contained in:
parent
9a70d76407
commit
5656817dea
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue