File tree 1 file changed +0
-12
lines changed
app/src/main/java/com/infomaniak/mail/workers
1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -101,8 +101,6 @@ class DraftsActionsWorker @AssistedInject constructor(
101
101
102
102
isSnackbarFeedbackNeeded = ! mainApplication.isAppInBackground
103
103
104
- notifyNewDraftDetected()
105
-
106
104
return @withContext handleDraftsActions()
107
105
}
108
106
@@ -116,15 +114,6 @@ class DraftsActionsWorker @AssistedInject constructor(
116
114
return ForegroundInfo (NotificationUtils .DRAFT_ACTIONS_ID , builder.build())
117
115
}
118
116
119
- private suspend fun notifyNewDraftDetected () {
120
- draftLocalUuid?.let { localUuid ->
121
- val draft = draftController.getDraft(localUuid) ? : return @let
122
- if (draft.action == DraftAction .SEND && isSnackbarFeedbackNeeded) {
123
- setProgress(workDataOf(PROGRESS_DRAFT_ACTION_KEY to DraftAction .SEND .name))
124
- }
125
- }
126
- }
127
-
128
117
private suspend fun handleDraftsActions (): Result {
129
118
130
119
SentryDebug .addDraftsBreadcrumbs(
@@ -445,7 +434,6 @@ class DraftsActionsWorker @AssistedInject constructor(
445
434
private const val USER_ID_KEY = " userId"
446
435
private const val MAILBOX_ID_KEY = " mailboxIdKey"
447
436
private const val DRAFT_LOCAL_UUID_KEY = " draftLocalUuidKey"
448
- const val PROGRESS_DRAFT_ACTION_KEY = " progressDraftActionKey"
449
437
const val ERROR_MESSAGE_RESID_KEY = " errorMessageResIdKey"
450
438
const val REMOTE_DRAFT_UUID_KEY = " remoteDraftUuidKey"
451
439
const val ASSOCIATED_MAILBOX_UUID_KEY = " associatedMailboxUuidKey"
You can’t perform that action at this time.
0 commit comments