2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 07:05:13 +00:00

Add comments button to channel posts.

This commit is contained in:
John Preston
2020-09-03 11:19:02 +04:00
parent ce91caa820
commit 31e1ed216a
33 changed files with 642 additions and 139 deletions

View File

@@ -1306,13 +1306,7 @@ void MainWidget::viewsIncrementDone(
item->setForwardsCount(forwards->v);
}
if (const auto replies = data.vreplies()) {
item->setRepliesCount(
replies->match([&](const MTPDmessageReplies &data) {
return data.vreplies().v;
}),
replies->match([&](const MTPDmessageReplies &data) {
return data.vreplies_pts().v;
}));
item->setReplies(*replies);
}
});
}