mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 22:47:03 +03:00
Reduce amount of avatar requests based on config settings
This commit is contained in:
parent
60b72ed981
commit
c27e231f53
2 changed files with 51 additions and 30 deletions
|
|
@ -67,8 +67,10 @@
|
|||
),
|
||||
addQueue = (msg, fn) => {
|
||||
setIdenticon(msg.from[0], fn);
|
||||
queue.push([msg, fn]);
|
||||
runQueue();
|
||||
if (rl.pluginSettingsGet('avatars', 'delay')) {
|
||||
queue.push([msg, fn]);
|
||||
runQueue();
|
||||
}
|
||||
},
|
||||
runQueue = (() => {
|
||||
let item = queue.shift();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue