mirror of
https://github.com/lubosz/overte.git
synced 2025-04-06 22:42:38 +02:00
Case-sensitive header name for Linux
This commit is contained in:
parent
5f986bbeb7
commit
30facb32e7
3 changed files with 6 additions and 13 deletions
|
@ -370,9 +370,8 @@ void AvatarMixer::manageIdentityData(const SharedNodePointer& node) {
|
|||
|
||||
MixerAvatar& avatar = nodeData->getAvatar();
|
||||
bool sendIdentity = avatar.needsIdentityUpdate();
|
||||
if (nodeData && nodeData->getAvatarSessionDisplayNameMustChange()) {
|
||||
MixerAvatar& avatar = nodeData->getAvatar();
|
||||
const QString& existingBaseDisplayName = nodeData->getAvatar().getSessionDisplayName();
|
||||
if (nodeData->getAvatarSessionDisplayNameMustChange()) {
|
||||
const QString& existingBaseDisplayName = avatar.getSessionDisplayName();
|
||||
if (!existingBaseDisplayName.isEmpty()) {
|
||||
SessionDisplayName existingDisplayName { existingBaseDisplayName };
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <QRegularExpression>
|
||||
#include <QJsonObject>
|
||||
#include <QJsonArray>
|
||||
#include <QJSonDocument>
|
||||
#include <QJsonDocument>
|
||||
#include <QNetworkReply>
|
||||
#include <QCryptographicHash>
|
||||
#include <QApplication>
|
||||
|
@ -208,7 +208,7 @@ void MixerAvatar::processCertifyEvents() {
|
|||
QNetworkReply* networkReply = networkAccessManager.put(networkRequest, QJsonDocument(request).toJson());
|
||||
connect(networkReply, &QNetworkReply::finished, this, &MixerAvatar::ownerRequestComplete);
|
||||
} else {
|
||||
_verifyState = kVerificationFailed;
|
||||
_needsIdentityUpdate = true;
|
||||
_pendingEvent = false;
|
||||
qCDebug(avatars) << "Avatar" << getDisplayName() << "FAILED static certification";
|
||||
}
|
||||
|
|
|
@ -29,21 +29,15 @@ public:
|
|||
bool needsIdentityUpdate() const { return _needsIdentityUpdate; }
|
||||
void clearIdentityUpdate() { _needsIdentityUpdate = false; }
|
||||
|
||||
|
||||
//bool isPendingCertifyFailed() const { return _verifyState == kVerificationFailedPending; }
|
||||
//void advanceCertifyFailed() {
|
||||
// if (isPendingCertifyFailed()) { _verifyState = kVerificationFailed; }
|
||||
//}
|
||||
void processCertifyEvents();
|
||||
void handleChallengeResponse(ReceivedMessage * response);
|
||||
|
||||
private:
|
||||
bool _needsHeroCheck{ false };
|
||||
bool _needsHeroCheck { false };
|
||||
|
||||
// Avatar certification/verification:
|
||||
enum VerifyState { kNoncertified, kRequestingFST, kReceivedFST, kStaticValidation, kRequestingOwner, kOwnerResponse,
|
||||
kChallengeClient, kChallengeResponse, kVerified, kVerificationFailed,
|
||||
kVerificationSucceeded, kError };
|
||||
kChallengeClient, kChallengeResponse, kVerified, kVerificationFailed, kVerificationSucceeded, kError };
|
||||
Q_ENUM(VerifyState);
|
||||
VerifyState _verifyState { kNoncertified };
|
||||
std::atomic<bool> _pendingEvent { false };
|
||||
|
|
Loading…
Reference in a new issue