1
0
Fork 0
forked from blue/squawk

non lower cased jids error handled

This commit is contained in:
Blue 2020-07-26 22:41:30 +03:00
parent 0dcfc5eedc
commit 480c78cf61
4 changed files with 59 additions and 47 deletions

View file

@ -321,7 +321,7 @@ void Core::Account::onPresenceReceived(const QXmppPresence& p_presence)
{
QString id = p_presence.from();
QStringList comps = id.split("/");
QString jid = comps.front();
QString jid = comps.front().toLower();
QString resource = comps.back();
QString myJid = getLogin() + "@" + getServer();
@ -682,7 +682,7 @@ void Core::Account::onVCardReceived(const QXmppVCardIq& card)
{
QString id = card.from();
QStringList comps = id.split("/");
QString jid = comps.front();
QString jid = comps.front().toLower();
QString resource("");
if (comps.size() > 1) {
resource = comps.back();