keep cached avatar&banner when refresh fails to get new values (#13145)

* keep cached avatar&banner when refresh fails to get new values

when the remote explicitly tells us a user image is gone, we remove
our cached value, but if we fail to get the image, we keep whatever
value we already have

this should minimise the problem of avatars randomly disappearing

* autogen bits

* pnpm run build-misskey-js-with-types

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
This commit is contained in:
Gianni Ceccarelli 2024-02-04 12:03:49 +00:00 committed by GitHub
parent bafef1f8b4
commit dabf1867fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 31 additions and 14 deletions

View file

@ -1,6 +1,6 @@
/*
* version: 2024.2.0-beta.8
* generatedAt: 2024-02-02T14:18:15.716Z
* generatedAt: 2024-02-04T11:51:13.598Z
*/
import type { SwitchCaseResponseType } from '../api.js';