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

Update API scheme on layer 166.

This commit is contained in:
John Preston
2023-10-03 17:52:33 +04:00
parent 744c1b925e
commit 926aae6847
18 changed files with 801 additions and 75 deletions

View File

@@ -1127,8 +1127,8 @@ void History::applyServiceChanges(
}, [&](const MTPDmessageActionPinMessage &data) {
if (replyTo) {
replyTo->match([&](const MTPDmessageReplyHeader &data) {
const auto id = data.vreply_to_msg_id().v;
if (item) {
const auto id = data.vreply_to_msg_id().value_or_empty();
if (id && item) {
session().storage().add(Storage::SharedMediaAddSlice(
peer->id,
MsgId(0),