| 1255 | } |
| 1256 | |
| 1257 | void Show( |
| 1258 | std::shared_ptr<ChatHelpers::Show> show, |
| 1259 | const Descriptor &descriptor, |
| 1260 | const std::shared_ptr<Data::DocumentMedia> &media, |
| 1261 | QImage back) { |
| 1262 | auto box = Box(PreviewBox, show, descriptor, media, back); |
| 1263 | const auto raw = box.data(); |
| 1264 | show->showBox(std::move(box)); |
| 1265 | if (descriptor.shownCallback) { |
| 1266 | descriptor.shownCallback(raw); |
| 1267 | } |
| 1268 | } |
| 1269 | |
| 1270 | void Show(std::shared_ptr<ChatHelpers::Show> show, QImage back) { |
| 1271 | auto &list = Preloads(); |
no test coverage detected