Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
trueromanus committed Sep 28, 2024
2 parents 980a73a + 32131be commit fc77e2e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Classes/Services/synchronizev2service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,12 @@ void Synchronizev2Service::userProfileHandler(QNetworkReply *reply) noexcept
m_nickName = response.value("nickname").toString();
emit nickNameChanged();
}
if (m_nickName.isEmpty()) {
if (response.contains("login")) {
m_nickName = response.value("login").toString();
emit nickNameChanged();
}
}
//if (response.contains("created_at")) m_nickName = response.value("created_at").toString();
if (response.contains("avatar")) {
auto avatarObject = response.value("avatar").toObject();
Expand Down

0 comments on commit fc77e2e

Please sign in to comment.