Repository navigation
fix(files): always finish the delete dialog after the server result #498
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
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
e812916
fix(files): always finish the delete dialog after the server result
veryCrunchy b0bf889
chore(website): refresh marketing captures
obiente-automations[bot] 374104f
fix(files): block stale, throttled, and overlapping deletes
veryCrunchy 042ee26
chore(website): refresh marketing captures
obiente-automations[bot] b7a6555
fix(files): own deletes per account session and bound local follow-ups
veryCrunchy 04ddf92
chore(website): refresh marketing captures
obiente-automations[bot] 75adac7
fix(files): keep delete retry blocks and stop stale follow-ups
veryCrunchy 51efc03
Merge remote-tracking branch 'origin/main' into fix/windows-delete-di…
veryCrunchy eafd337
chore(website): refresh marketing captures
obiente-automations[bot] d41fe6e
fix(files): keep writes blocked until refresh and report local follow…
veryCrunchy 63601b9
chore(website): refresh marketing captures
obiente-automations[bot] d50ce09
fix(files): lift delete blocks from any view and reuse running refreshes
veryCrunchy 21187c0
chore(website): refresh marketing captures
obiente-automations[bot] 77ed1c0
fix(files): fence every in-app file edit and report Android cache fai…
veryCrunchy 877efae
chore(website): refresh marketing captures
obiente-automations[bot] 642e4ad
fix(files): share delete write blocks across activities through a pro…
veryCrunchy 4a8ab4d
chore(website): refresh marketing captures
obiente-automations[bot] 909ff81
fix(files): run Files deletes in the process-level account owner
veryCrunchy 2aad0b2
chore(website): refresh marketing captures
obiente-automations[bot] 428e3e8
fix(files): verify delete identity, skip verification for unsent requ…
veryCrunchy 6555a51
chore(website): refresh marketing captures
obiente-automations[bot] d94984a
fix(files): route media viewer deletes through the shared delete coor…
veryCrunchy 2340bca
chore(website): refresh marketing captures
obiente-automations[bot] 2eab690
fix(files): apply media deletes for every viewer item and bound delet…
veryCrunchy a073b53
chore(website): refresh marketing captures
obiente-automations[bot] 7e92f89
fix(files): require a refresh when only one side of a delete has a fi…
veryCrunchy 0c8d1cf
chore(website): refresh marketing captures
obiente-automations[bot] 4305e6e
fix(files): report reconciliation after unknown deletes and keep view…
veryCrunchy 296a574
chore(website): refresh marketing captures
obiente-automations[bot] a4b6fe3
fix(files): keep surviving stack members and explain delete-blocked s…
veryCrunchy 90208dd
chore(website): refresh marketing captures
obiente-automations[bot] 732b7ce
Merge remote-tracking branch 'origin/main' into fix/windows-delete-di…
veryCrunchy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
androidApp/src/main/kotlin/dev/obiente/nextcloudnative/AndroidFileWriteFences.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| package dev.obiente.nextcloudnative | ||
|
|
||
| import android.content.Context | ||
| import dev.obiente.nextcloudnative.app.FileWriteFenceRegistry | ||
|
|
||
| /** | ||
| * The process's write-fence owner. The Application holds it, so the main activity, the share | ||
| * activity, and workers of this process see the same account blocks even though each creates its | ||
| * own services instance. Blocks are in memory only; a new process starts without any. | ||
| */ | ||
| internal fun androidFileWriteFences(context: Context): FileWriteFenceRegistry = | ||
| (context.applicationContext as NextcloudNativeApplication).fileWriteFences | ||
|
|
||
| /** | ||
| * Drops [accountStorageKey]'s write blocks with its other private state at sign-out or removal. | ||
| * A context that is not this process's Application never registered blocks, so nothing is dropped. | ||
| */ | ||
| internal fun dropAndroidFileWriteFences(context: Context, accountStorageKey: String) { | ||
| (context.applicationContext as? NextcloudNativeApplication)?.fileWriteFences?.removeAccount(accountStorageKey) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.