Skip to content

Commit

Permalink
fix(preferences(js)): set default auto mark as read delay to 5
Browse files Browse the repository at this point in the history
Fixes #5443
  • Loading branch information
cgx committed Dec 10, 2021
1 parent a89d3a4 commit cb4d555
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -25,7 +25,7 @@
$mdConstant.KEY_CODE.COMMA,
$mdConstant.KEY_CODE.SEMICOLON
];
this.mailAutoMarkAsReadDelay = Preferences.defaults.SOGoMailAutoMarkAsReadEnabled ? Preferences.defaults.SOGoMailAutoMarkAsReadDelay : 5;
this.mailAutoMarkAsReadDelay = Preferences.defaults.SOGoMailAutoMarkAsReadMode == 'delay' ? Math.max(1, Preferences.defaults.SOGoMailAutoMarkAsReadDelay) : 5;

// Set alternate avatar in User service
if (Preferences.defaults.SOGoAlternateAvatar)
Expand Down

0 comments on commit cb4d555

Please sign in to comment.