Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Desktop: avatars blink (blank → gray → photo) whenever a new message group renders

Aperta Adatta ai principianti
#8,193 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
67/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
react, rust
Ambito
desktop

Direzione di ricerca

Inizia leggendo desktop/src/shared/ui/avatar.tsx e ricostruisci come UserAvatar esegue il rendering di Avatar e AvatarImage di Radix; il report indica il caricamento differito, la decodifica asincrona e il controllo del caricamento di Radix a ogni mount come possibili cause, non come soluzioni verificate. Riproduci lo sfarfallio quando appare un nuovo gruppo di autori, quindi verifica che un avatar memorizzato nella cache venga visualizzato al primo frame senza la transizione da vuoto a grigio.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug
Every time a new author block mounts in the timeline, the avatar blinks. This happens for sends and incoming messages alike, and even when the image is already cached. In a 120 fps recording, the avatar is blank for one frame, a gray circle for one frame, then the photo (about 20 ms in total). It reads as a flicker every time someone starts a new group.

Steps to reproduce

  1. Open a DM or channel with avatars set.
  2. Send a message that starts a new author group, or receive one from someone else.
  3. Record the screen at a high frame rate and step through the frames where the row appears.

Expected behavior
An avatar that is already cached paints on the row's first frame.

Version and platform

  • Buzz version: dev build from main (a8fe2b6)
  • OS: macOS 26

Logs / additional context
Likely cause, not yet verified with a fix: UserAvatar uses Radix Avatar, and AvatarImage (@radix-ui/react-avatar 1.1.12) only renders the <img> after its own per-mount new Image() reports loaded. The image therefore never paints on the first frame, even from cache. desktop/src/shared/ui/avatar.tsx also sets loading="lazy" and decoding="async" on the image, which can add a frame of gray bg-secondary before the decoded photo appears.

Duplicates: none found.

Lingua principale
Rust
Stelle
35.6k
Fork
4.7k
Merge medio
2g 4h
PR unite (30g)
202

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di block/buzz

Tutte le issue di block/buzz

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.