forked from blue/squawk
Muc participants are displayed now in the roster
This commit is contained in:
parent
70f9739cf5
commit
5547d78608
16 changed files with 350 additions and 7 deletions
|
@ -132,7 +132,6 @@ void Core::Conference::onRoomParticipantAdded(const QString& p_name)
|
|||
if (resource == jid) {
|
||||
qDebug() << "Room" << jid << "is reporting of adding itself to the list participants. Not sure what to do with that yet, skipping";
|
||||
} else {
|
||||
qDebug() << "Participant" << resource << "had entered room" << jid;
|
||||
QXmppPresence pres = room->participantPresence(jid);
|
||||
QDateTime lastInteraction = pres.lastUserInteraction();
|
||||
if (!lastInteraction.isValid()) {
|
||||
|
|
|
@ -126,6 +126,13 @@ void Core::Squawk::addAccount(const QString& login, const QString& server, const
|
|||
this, SLOT(onAccountChangeRoom(const QString&, const QMap<QString, QVariant>&)));
|
||||
connect(acc, SIGNAL(removeRoom(const QString&)), this, SLOT(onAccountRemoveRoom(const QString&)));
|
||||
|
||||
connect(acc, SIGNAL(addRoomParticipant(const QString&, const QString&, const QMap<QString, QVariant>&)),
|
||||
this, SLOT(onAccountAddRoomPresence(const QString&, const QString&, const QMap<QString, QVariant>&)));
|
||||
connect(acc, SIGNAL(changeRoomParticipant(const QString&, const QString&, const QMap<QString, QVariant>&)),
|
||||
this, SLOT(onAccountChangeRoomPresence(const QString&, const QString&, const QMap<QString, QVariant>&)));
|
||||
connect(acc, SIGNAL(removeRoomParticipant(const QString&, const QString&)),
|
||||
this, SLOT(onAccountRemoveRoomPresence(const QString&, const QString&)));
|
||||
|
||||
|
||||
QMap<QString, QVariant> map = {
|
||||
{"login", login},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue