2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Mask channel as forbidden on CHANNEL_PRIVATE error.

Fixes #5902.
This commit is contained in:
John Preston
2019-04-09 17:18:47 +04:00
parent fb847135b5
commit 826d6011a1
4 changed files with 17 additions and 1 deletions

View File

@@ -1661,6 +1661,9 @@ void ApiWrap::requestSelfParticipant(not_null<ChannelData*> channel) {
}
const auto finalize = [=](UserId inviter, TimeId inviteDate) {
if (inviter < 0) {
channel->markForbidden();
}
channel->inviter = inviter;
channel->inviteDate = inviteDate;
if (const auto history = _session->data().historyLoaded(channel)) {