Add timeout to avatar fetches and avoid blocking on profile syncs

This commit is contained in:
trevor-signal 2024-02-28 12:48:01 -05:00 committed by GitHub
parent c64aa86736
commit 55be00d689
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 5 deletions

View file

@ -1984,7 +1984,7 @@ export function initialize({
contentType: 'application/octet-stream',
proxyUrl,
responseType: 'bytes',
timeout: 0,
timeout: 90 * SECOND,
type: 'GET',
redactUrl: (href: string) => {
const pattern = RegExp(escapeRegExp(path), 'g');