Removed the DATA_IMAGE_USER_DOT_PIC

Because viewUserPic is always false due to the removed Gravatar feature
This commit is contained in:
djmaze 2020-09-30 16:10:01 +02:00
parent 98c6fa0675
commit cfdbe3251e
9 changed files with 44 additions and 93 deletions

View file

@ -1,4 +1,3 @@
import { DEFAULT_AJAX_TIMEOUT } from 'Common/Consts';
import { StorageResultType, Notification } from 'Common/Enums';
import { pInt, pString } from 'Common/Utils';
import { serverRequest } from 'Common/Links';
@ -91,7 +90,7 @@ class AbstractFetchRemote
}
return rl.fetchJSON(getURL(sGetAdd), {
signal: this.createAbort(action, undefined === iTimeout ? DEFAULT_AJAX_TIMEOUT : pInt(iTimeout))
signal: this.createAbort(action, undefined === iTimeout ? 30000 : pInt(iTimeout))
}, sGetAdd ? null : params
).then(data => {
let cached = false;
@ -217,7 +216,7 @@ class AbstractFetchRemote
this.setTrigger(fTrigger, true);
return rl.fetchJSON(getURL(), {
signal: this.createAbort(action, pInt(timeOut, DEFAULT_AJAX_TIMEOUT))
signal: this.createAbort(action, pInt(timeOut, 30000))
}, params
).then(data => {
this.abort(action, true);