mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Update API scheme to layer 115.
This commit is contained in:
@@ -475,6 +475,11 @@ void PeerData::setPinnedMessageId(MsgId messageId) {
|
||||
}
|
||||
|
||||
bool PeerData::canExportChatHistory() const {
|
||||
if (const auto channel = asChannel()) {
|
||||
if (!channel->amIn() && channel->invitePeekExpires()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
for (const auto &block : _owner->history(id)->blocks) {
|
||||
for (const auto &message : block->messages) {
|
||||
if (!message->data()->serviceMsg()) {
|
||||
|
Reference in New Issue
Block a user