Skip to content

Commit 5bb80f9

Browse files
Simon-Lauxr10s
andcommitted
Apply suggestions from code review
Co-authored-by: bjoern <r10s@b44t.com>
1 parent 2f29c56 commit 5bb80f9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

deltachat-jsonrpc/src/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ impl CommandApi {
236236
/// The `AccountsBackgroundFetchDone` event is emitted at the end,
237237
/// process all events until you get this one and you can safely return to the background
238238
/// without forgeting to create notifications caused by timing race conditions.
239-
async fn background_fetch_for_all_accounts(&self, timeout_in_seconds: f64) -> Result<()> {
239+
async fn accounts_background_fetch(&self, timeout_in_seconds: f64) -> Result<()> {
240240
self.accounts
241241
.write()
242242
.await

node/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929
DC_DOWNLOAD_FAILURE: 20,
3030
DC_DOWNLOAD_IN_PROGRESS: 1000,
3131
DC_DOWNLOAD_UNDECIPHERABLE: 30,
32-
DC_EVENT_BACKGROUND_FETCH_COMPLETED_FOR_ALL_ACCOUNTS: 2200,
32+
DC_EVENT_ACCOUNTS_BACKGROUND_FETCH_DONE: 2200,
3333
DC_EVENT_CHAT_EPHEMERAL_TIMER_MODIFIED: 2021,
3434
DC_EVENT_CHAT_MODIFIED: 2020,
3535
DC_EVENT_CONFIGURE_PROGRESS: 2041,

node/events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ module.exports = {
3737
2111: 'DC_EVENT_CONFIG_SYNCED',
3838
2120: 'DC_EVENT_WEBXDC_STATUS_UPDATE',
3939
2121: 'DC_EVENT_WEBXDC_INSTANCE_DELETED',
40-
2200: 'DC_EVENT_BACKGROUND_FETCH_COMPLETED_FOR_ALL_ACCOUNTS'
40+
2200: 'DC_EVENT_ACCOUNTS_BACKGROUND_FETCH_DONE'
4141
}

0 commit comments

Comments
 (0)