Skip to content

Commit a6faeb4

Browse files
authored
Merge pull request #40 from defnax/chatstatus
Fixed Avatar update
2 parents a6ac1de + ea1d13c commit a6faeb4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

retroshare-gui/src/gui/chat/PopupDistantChatDialog.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ void PopupDistantChatDialog::init(const ChatId &chat_id, const QString &/*title*
8787

8888
ui.ownAvatarWidget->setOwnId() ; // sets the flag
8989
ui.ownAvatarWidget->setId(chat_id) ; // sets the actual Id
90-
ui.avatarWidget->setId(chat_id);
9190

9291
_status_label->setIcon(FilesDefs::getIconFromQtResourcePath(IMAGE_GRY_LED));
9392
auto msg = tr("Remote status unknown.");
@@ -112,6 +111,8 @@ void PopupDistantChatDialog::handleEvent_main_thread(std::shared_ptr<const RsEve
112111
std::cerr << "Got event!" << std::endl;
113112
std::cerr << "Event code = " << (int)ev->mEventCode << std::endl;
114113

114+
ui.avatarWidget->setId(ChatId(_tunnel_id));
115+
115116
QString msg;
116117

117118
switch(ev->mEventCode)

0 commit comments

Comments
 (0)