Improve design and icons in community UIs.

This commit is contained in:
John Preston
2026-06-12 11:59:16 +04:00
parent 4980f0068a
commit 6a4e9e9ee3
16 changed files with 231 additions and 69 deletions
@@ -205,6 +205,9 @@ void Communities::requestPeerLinkRequests(
auto &owner = _session->data();
owner.processUsers(data.vusers());
owner.processChats(data.vchats());
community->setPendingRequestsCount(
data.vtotal_count().v,
QVector<MTPlong>());
auto slice = CommunityPeerRequestsSlice();
slice.totalCount = data.vtotal_count().v;
slice.nextOffset = qs(data.vnext_offset().value_or_empty());
@@ -241,6 +244,9 @@ void Communities::togglePeerLinkRequestApproval(
community->inputChannel(),
peer->input()
)).done([=] {
community->setPendingRequestsCount(
std::max(community->pendingRequestsCount() - 1, 0),
QVector<MTPlong>());
_session->api().requestFullPeer(community);
if (done) {
done();
@@ -262,6 +268,7 @@ void Communities::toggleAllPeerLinkRequestApproval(
MTP_flags(reject ? Flag::f_reject : Flag()),
community->inputChannel()
)).done([=] {
community->setPendingRequestsCount(0, QVector<MTPlong>());
_session->api().requestFullPeer(community);
if (done) {
done();