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