now we have avatars in muc chats

This commit is contained in:
Blue 2019-12-31 21:14:12 +03:00
parent 55703c2007
commit 52efc2b1a4
8 changed files with 94 additions and 13 deletions

View file

@ -949,7 +949,7 @@ bool Models::Roster::groupHasContact(const QString& account, const QString& grou
}
}
QString Models::Roster::getContactIconPath(const QString& account, const QString& jid)
QString Models::Roster::getContactIconPath(const QString& account, const QString& jid, const QString& resource)
{
ElId id(account, jid);
std::multimap<ElId, Contact*>::const_iterator cItr = contacts.find(id);
@ -959,7 +959,7 @@ QString Models::Roster::getContactIconPath(const QString& account, const QString
if (rItr == rooms.end()) {
qDebug() << "An attempt to get an icon path of non existing contact" << account << ":" << jid << ", returning empty value";
} else {
//path = rItr->second->getRoomName();
path = rItr->second->getParticipantIconPath(resource);
}
} else {
if (cItr->second->getAvatarState() != Shared::Avatar::empty) {