mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 06:19:49 +02:00
Misc. tweaks
This commit is contained in:
parent
38d8a9a2da
commit
2a177e04e1
2 changed files with 4 additions and 3 deletions
|
@ -132,16 +132,17 @@ void MessagesClient::sendMessage(QString channel, QString message, bool localOnl
|
|||
|
||||
void MessagesClient::sendData(QString channel, QByteArray data, bool localOnly) {
|
||||
auto nodeList = DependencyManager::get<NodeList>();
|
||||
QUuid senderID = nodeList->getSessionUUID();
|
||||
if (localOnly) {
|
||||
QUuid senderID = nodeList->getSessionUUID();
|
||||
emit dataReceived(channel, data, senderID, true);
|
||||
} else {
|
||||
SharedNodePointer messagesMixer = nodeList->soloNodeOfType(NodeType::MessagesMixer);
|
||||
|
||||
if (messagesMixer) {
|
||||
QUuid senderID = nodeList->getSessionUUID();
|
||||
auto packetList = encodeMessagesDataPacket(channel, data, senderID);
|
||||
nodeList->sendPacketList(std::move(packetList), *messagesMixer);
|
||||
} else {
|
||||
emit dataReceived(channel, data, senderID, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
STATE_MACHINE,
|
||||
rezzerState = PROXY_HIDDEN,
|
||||
proxyHand,
|
||||
PROXY_EXPAND_DURATION = 500,
|
||||
PROXY_EXPAND_DURATION = 250,
|
||||
PROXY_EXPAND_TIMEOUT = 25,
|
||||
proxyExpandTimer = null,
|
||||
proxyExpandStart,
|
||||
|
|
Loading…
Reference in a new issue