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:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user