Fixed Avatar update

This commit is contained in:
defnax 2025-12-07 10:02:17 +01:00
parent 1ab5ad0a8e
commit ea1d13c1d9

View file

@ -87,7 +87,6 @@ void PopupDistantChatDialog::init(const ChatId &chat_id, const QString &/*title*
ui.ownAvatarWidget->setOwnId() ; // sets the flag ui.ownAvatarWidget->setOwnId() ; // sets the flag
ui.ownAvatarWidget->setId(chat_id) ; // sets the actual Id ui.ownAvatarWidget->setId(chat_id) ; // sets the actual Id
ui.avatarWidget->setId(chat_id);
_status_label->setIcon(FilesDefs::getIconFromQtResourcePath(IMAGE_GRY_LED)); _status_label->setIcon(FilesDefs::getIconFromQtResourcePath(IMAGE_GRY_LED));
auto msg = tr("Remote status unknown."); auto msg = tr("Remote status unknown.");
@ -112,6 +111,8 @@ void PopupDistantChatDialog::handleEvent_main_thread(std::shared_ptr<const RsEve
std::cerr << "Got event!" << std::endl; std::cerr << "Got event!" << std::endl;
std::cerr << "Event code = " << (int)ev->mEventCode << std::endl; std::cerr << "Event code = " << (int)ev->mEventCode << std::endl;
ui.avatarWidget->setId(ChatId(_tunnel_id));
QString msg; QString msg;
switch(ev->mEventCode) switch(ev->mEventCode)