| 3308 | } |
| 3309 | |
| 3310 | void SessionController::openPhoto( |
| 3311 | not_null<PhotoData*> photo, |
| 3312 | MessageContext message, |
| 3313 | const Data::StoriesContext *stories) { |
| 3314 | const auto item = session().data().message(message.id); |
| 3315 | if (openSharedStory(item) || openFakeItemStory(message.id, stories)) { |
| 3316 | return; |
| 3317 | } |
| 3318 | const auto origin = item |
| 3319 | ? Data::FileOrigin(item->fullId()) |
| 3320 | : Data::FileOrigin(); |
| 3321 | if (openPhotoExternal(photo, origin)) { |
| 3322 | return; |
| 3323 | } |
| 3324 | _window->openInMediaView(Media::View::OpenRequest( |
| 3325 | this, |
| 3326 | photo, |
| 3327 | item, |
| 3328 | message.topicRootId, |
| 3329 | message.monoforumPeerId, |
| 3330 | message.showDrawButton)); |
| 3331 | } |
| 3332 | |
| 3333 | void SessionController::openPhoto( |
| 3334 | not_null<PhotoData*> photo, |
no test coverage detected