[UserList] Keep banner art when a params-less user copy arrives

This commit is contained in:
Lukas Brübach 2026-08-16 02:52:51 +02:00
parent d99798111e
commit fef7c0b914

View file

@ -1300,9 +1300,13 @@ void UserListWidget::updateCardArtParams(const ServerInfo_User &user, const QStr
params.zoom = cap.zoom();
cardArtParamsMap.insert(userName, params);
cardArtProvider->requestCardArt(userName, params.cardName, params.cardProviderId);
} else {
cardArtParamsMap.remove(userName); // clear stale params on removal
}
// Intentionally no removal branch: buddy/ignore list copies never carry
// card_art_params (the server omits the column), so a params-less copy here
// means "this snapshot doesn't include it", not "the banner was removed".
// Removing on such copies would wipe banners that the live online list set.
// The map is rebuilt from scratch (clear() + repopulate) on every rebuild,
// which is what actually drops stale entries.
}
void UserListWidget::processUserInfo(const ServerInfo_User &user, bool online)