Showing the changes to interface/src/DatagramProcessor.cpp (1 of 8 files). Show all
Unified · Split
| @@ -15,7 +15,6 @@ · 14 unmodified lines | ||
| 15 | 15 | |
| 16 | 16 | #include "Application.h" |
| 17 | 17 | #include "Menu.h" |
| 18 | −#include "ui/OAuthWebViewHandler.h" | |
| 19 | 18 | |
| 20 | 19 | #include "DatagramProcessor.h" |
| 21 | 20 | |
| @@ -136,16 +135,11 @@ void DatagramProcessor::processDatagrams() { · 114 unmodified lines | ||
| 136 | 135 | application->_bandwidthMeter.inputStream(BandwidthMeter::AVATARS).updateValue(incomingPacket.size()); |
| 137 | 136 | break; |
| 138 | 137 | } |
| 139 | − case PacketTypeDomainOAuthRequest: { | |
| 140 | − QDataStream readStream(incomingPacket); | |
| 141 | − readStream.skipRawData(numBytesForPacketHeader(incomingPacket)); | |
| 142 | − | |
| 143 | − QUrl authorizationURL; | |
| 144 | − readStream >> authorizationURL; | |
| 145 | − | |
| 146 | − QMetaObject::invokeMethod(&OAuthWebViewHandler::getInstance(), "displayWebviewForAuthorizationURL", | |
| 147 | − Q_ARG(const QUrl&, authorizationURL)); | |
| 148 | − | |
| 138 | + case PacketTypeDomainUsernameRequest: { | |
| 139 | + // flag the domain handler so it knows to send a username signature on next check-in | |
| 140 | + // and then make it send that next check in | |
| 141 | + nodeList->getDomainHandler().setRequiresUsernameSignature(true); | |
| 142 | + nodeList->sendDomainServerCheckIn(); | |
| 149 | 143 | break; |
| 150 | 144 | } |
| 151 | 145 | case PacketTypeMuteEnvironment: { |