Merge 4.13.1

This commit is contained in:
ZavaruKitsu
2023-12-24 17:31:55 +03:00
177 changed files with 5409 additions and 1901 deletions
+7 -1
View File
@@ -856,6 +856,7 @@ not_null<PeerData*> Session::processChat(const MTPChat &data) {
const auto wasCallNotEmpty = Data::ChannelHasActiveCall(channel);
channel->updateLevelHint(data.vlevel().value_or_empty());
if (const auto count = data.vparticipants_count()) {
channel->setMembersCount(count->v);
}
@@ -865,6 +866,11 @@ not_null<PeerData*> Session::processChat(const MTPChat &data) {
channel->setDefaultRestrictions(ChatRestrictions());
}
if (const auto &status = data.vemoji_status()) {
channel->setEmojiStatus(*status);
} else {
channel->setEmojiStatus(0);
}
if (minimal) {
if (channel->input.type() == mtpc_inputPeerEmpty
|| channel->inputChannel.type() == mtpc_inputChannelEmpty) {
@@ -3451,7 +3457,7 @@ void Session::webpageApplyFields(
data.vid().v,
};
if (const auto embed = data.vstory()) {
story = stories().applyFromWebpage(
story = stories().applySingle(
peerFromMTP(data.vpeer()),
*embed);
} else if (const auto maybe = stories().lookup(storyId)) {