mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 00:25:16 -04:00
half way through enabling GXS avatars into distant chat. Converted AvatarWidget to use a generic ChatId instead of RsPeerId. Still need to add own Id to PopupDistantChatDialog and properly compute own name.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7924 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3b5644c474
commit
ccee594a28
16 changed files with 207 additions and 142 deletions
|
@ -562,7 +562,7 @@ void FriendList::updateAvatar(const QString& id)
|
|||
if ((*it)->type() == TYPE_SSL && id == (*it)->data(COLUMN_DATA, ROLE_ID).toString()) {
|
||||
if ((*it)->parent() != NULL && (*it)->parent()->type() == TYPE_GPG) {
|
||||
QPixmap avatar;
|
||||
AvatarDefs::getAvatarFromSslId(id.toStdString(), avatar);
|
||||
AvatarDefs::getAvatarFromSslId(RsPeerId(id.toStdString()), avatar);
|
||||
QIcon avatar_icon(avatar);
|
||||
(*it)->parent()->setIcon(COLUMN_AVATAR, avatar_icon);
|
||||
}
|
||||
|
@ -1145,7 +1145,7 @@ void FriendList::insertPeers()
|
|||
// only set the avatar image the first time, or when it changed
|
||||
// otherwise getAvatarFromSslId sends request packages to peers.
|
||||
QPixmap avatar;
|
||||
AvatarDefs::getAvatarFromSslId(bestSslId.toStdString(), avatar);
|
||||
AvatarDefs::getAvatarFromSslId(bestSslId, avatar);
|
||||
QIcon avatar_icon(avatar);
|
||||
gpgItem->setIcon(COLUMN_AVATAR, avatar_icon);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue