2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Use recent requester userIds from API.

This commit is contained in:
John Preston
2021-10-27 09:57:50 +04:00
parent 36271d6b85
commit eb82664452
5 changed files with 32 additions and 136 deletions

View File

@@ -766,15 +766,6 @@ void InviteLinks::requestMoreLinks(
}).send();
}
void InviteLinks::pushRecentRequests(RecentRequests &&requests) {
_recentRequestsLocal.fire(std::move(requests));
}
auto InviteLinks::recentRequestsLocal() const
-> rpl::producer<RecentRequests> {
return _recentRequestsLocal.events();
}
void InviteLinks::editPermanentLink(
not_null<PeerData*> peer,
const QString &link) {

View File

@@ -132,13 +132,6 @@ public:
bool revoked,
Fn<void(Links)> done);
struct RecentRequests {
not_null<PeerData*> peer;
std::vector<not_null<UserData*>> users;
};
void pushRecentRequests(RecentRequests &&requests);
[[nodiscard]] rpl::producer<RecentRequests> recentRequestsLocal() const;
private:
struct LinkKey {
not_null<PeerData*> peer;
@@ -223,7 +216,6 @@ private:
base::flat_map<
std::pair<not_null<PeerData*>, not_null<UserData*>>,
ProcessRequest> _processRequests;
rpl::event_stream<RecentRequests> _recentRequestsLocal;
rpl::event_stream<Update> _updates;