|
|
@ -516,11 +516,10 @@ MatrixClient::getOwnCommunities() noexcept |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
QList<QString> response; |
|
|
|
QList<QString> response; |
|
|
|
for (auto it = json["groups"].toArray().constBegin(); |
|
|
|
|
|
|
|
it != json["groups"].toArray().constEnd(); |
|
|
|
for (auto group : json["groups"].toArray()) |
|
|
|
it++) { |
|
|
|
response.append(group.toString()); |
|
|
|
response.append(it->toString()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
emit getOwnCommunitiesResponse(response); |
|
|
|
emit getOwnCommunitiesResponse(response); |
|
|
|
} catch (DeserializationException &e) { |
|
|
|
} catch (DeserializationException &e) { |
|
|
|
qWarning() << "Own communities:" << e.what(); |
|
|
|
qWarning() << "Own communities:" << e.what(); |
|
|
|