1
0
Fork 0
forked from blue/squawk

Now avatars are properly autogenerated, reduced vCard spam

This commit is contained in:
Blue 2024-01-31 20:22:49 -03:00
parent 93c5be412e
commit 0be2648849
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
9 changed files with 76 additions and 92 deletions

View file

@ -650,10 +650,10 @@ void Models::Roster::onChildRemoved() {
void Models::Roster::addPresence(const QString& account, const QString& jid, const QString& name, const QMap<QString, QVariant>& data) {
ElId contactId(account, jid);
std::map<ElId, Contact*>::iterator itr = contacts.find(contactId);
if (itr != contacts.end()) {
if (itr != contacts.end())
itr->second->addPresence(name, data);
}
else
qDebug() << "Received a presence" << jid + "/" + name << "don't know what to do with it";
}
void Models::Roster::removePresence(const QString& account, const QString& jid, const QString& name) {