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

Add ability to see invite links of other admins.

This commit is contained in:
John Preston
2021-02-05 17:22:02 +04:00
parent 9d3edb785c
commit 4153603d09
11 changed files with 385 additions and 128 deletions

View File

@@ -776,11 +776,11 @@ void ApplyChannelUpdate(
next->v - channel->slowmodeSeconds());
}
if (const auto invite = update.vexported_invite()) {
channel->session().api().inviteLinks().setPermanent(
channel->session().api().inviteLinks().setMyPermanent(
channel,
*invite);
} else {
channel->session().api().inviteLinks().clearPermanent(channel);
channel->session().api().inviteLinks().clearMyPermanent(channel);
}
if (const auto location = update.vlocation()) {
channel->setLocation(*location);