forked from blue/squawk
Client node now displays in all participants and presences, some additional checkups before querying empty clients, refactoring
This commit is contained in:
parent
76a9c5da0c
commit
21b40a9ccb
19 changed files with 407 additions and 317 deletions
|
@ -360,9 +360,13 @@ void Core::Account::onPresenceReceived(const QXmppPresence& p_presence) {
|
|||
{"lastActivity", lastInteraction},
|
||||
{"availability", p_presence.availableStatusType()}, //TODO check and handle invisible
|
||||
{"status", p_presence.statusText()},
|
||||
{"capabilityNode", p_presence.capabilityNode()},
|
||||
{"capabilityVer", p_presence.capabilityVer().toBase64()},
|
||||
{"capabilityHash", p_presence.capabilityHash()}
|
||||
{"client", QVariant::fromValue(
|
||||
Shared::ClientId(
|
||||
p_presence.capabilityNode(),
|
||||
p_presence.capabilityVer().toBase64(),
|
||||
p_presence.capabilityHash())
|
||||
)
|
||||
}
|
||||
});
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue