File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -386,17 +386,23 @@ export default {
386
386
387
387
break
388
388
case 'unseen':
389
- if (this.hasSeenAcl()) {
389
+ logger.debug('marking as seen/unseen via shortcut')
390
+
391
+ if (!this.hasSeenAcl()) {
392
+ showWarning(t('mail', 'Your IMAP server does not support storing the seen/unseen state.'))
390
393
return
391
394
}
392
- logger.debug('marking message as seen/unseen via shortkey', { env })
393
- this.mainStore.toggleEnvelopeSeen({ envelope: env }).catch((error) =>
395
+
396
+ logger.debug('marking as seen/unseen', { env })
397
+ try {
398
+ await this.mainStore.toggleEnvelopeSeen({ envelope: env })
399
+ } catch (error) {
394
400
logger.error('could not mark envelope as seen/unseen via shortkey', {
395
401
env,
396
402
error,
397
- }),
398
- )
399
-
403
+ })
404
+ showError(t('mail', 'Could not mark message as seen/unseen') )
405
+ }
400
406
break
401
407
default:
402
408
logger.warn('shortcut ' + e.srcKey + ' is unknown. ignoring.')
You can’t perform that action at this time.
0 commit comments