Allow HistoryGroupedMedia cloning.

We use it for local forwarded message creation, it should be main().
This commit is contained in:
John Preston 2017-12-17 17:01:34 +04:00
parent 656e4869e6
commit 499e3113b9
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public:
std::unique_ptr<HistoryMedia> clone(
not_null<HistoryItem*> newParent,
not_null<HistoryItem*> realParent) const override {
Unexpected("Clone HistoryGroupedMedia.");
return main()->clone(newParent, realParent);
}
void initDimensions() override;