Cleanup constants

This commit is contained in:
djmaze 2020-09-30 14:07:03 +02:00
parent 87e214aef7
commit 0a95e2c6dc
11 changed files with 40 additions and 104 deletions

View file

@ -21,7 +21,6 @@ import {
clearNewMessageCache
} from 'Common/Cache';
import { MESSAGE_BODY_CACHE_LIMIT } from 'Common/Consts';
import { mailBox, notificationMailIcon } from 'Common/Links';
import { i18n, getNotification } from 'Common/Translator';
@ -209,7 +208,7 @@ class MessageUserStore {
}
purgeMessageBodyCache() {
const end = iMessageBodyCacheCount - MESSAGE_BODY_CACHE_LIMIT;
const end = iMessageBodyCacheCount - 15;
if (0 < end) {
let count = 0;
const messagesDom = this.messagesBodiesDom();