| 119 | using UpdatedFileReferences = Data::UpdatedFileReferences; |
| 120 | |
| 121 | [[nodiscard]] std::shared_ptr<ChatHelpers::Show> ShowForPeer( |
| 122 | not_null<PeerData*> peer) { |
| 123 | if (const auto window = Core::App().windowFor(peer)) { |
| 124 | if (const auto controller = window->sessionController()) { |
| 125 | if (&controller->session() == &peer->session()) { |
| 126 | return controller->uiShow(); |
| 127 | } |
| 128 | } |
| 129 | } |
| 130 | return nullptr; |
| 131 | } |
| 132 | |
| 133 | void ShowChannelsLimitBox(not_null<PeerData*> peer) { |
| 134 | if (const auto window = Core::App().windowFor(peer)) { |
no test coverage detected