fix profile image update in header after changes

This commit is contained in:
Barış Soner Uşaklı
2026-03-15 15:18:17 -04:00
parent ec4e87ff84
commit 47f59dcf8c

View File

@@ -108,7 +108,9 @@ define('accounts/picture', [
const headerIconEl = $(`[component="header/avatar"] [component="avatar/icon"]`);
if (picture) {
if (!headerPictureEl.length && headerIconEl.length) {
if (headerPictureEl.length) {
headerPictureEl.attr('src', picture);
} else if (headerIconEl.length) {
const img = $('<img/>');
$(headerIconEl[0].attributes).each(function () {
img.attr(this.nodeName, this.nodeValue);