forked from blue/squawk
Refactoring, new messages thread beggining
This commit is contained in:
parent
5575cff1f5
commit
e48444636a
25 changed files with 610 additions and 163 deletions
|
@ -493,9 +493,9 @@ void Models::Roster::removePresence(const QString& account, const QString& jid,
|
|||
}
|
||||
}
|
||||
|
||||
void Models::Roster::addMessage(const QString& account, const QMap<QString, QString>& data)
|
||||
void Models::Roster::addMessage(const QString& account, const Shared::Message& data)
|
||||
{
|
||||
ElId id(account, data.value("from"));
|
||||
ElId id(account, data.getPenPalJid());
|
||||
|
||||
std::multimap<ElId, Contact*>::iterator cBeg = contacts.lower_bound(id);
|
||||
std::multimap<ElId, Contact*>::iterator cEnd = contacts.upper_bound(id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue