| 1127 | } |
| 1128 | |
| 1129 | void ShareBox::Inner::preloadUserpic(not_null<Dialogs::Entry*> entry) { |
| 1130 | entry->chatListPreloadData(); |
| 1131 | const auto history = entry->asHistory(); |
| 1132 | if (!_descriptor.moneyRestrictionError || !history) { |
| 1133 | return; |
| 1134 | } else if (!Api::ResolveMessageMoneyRestrictions( |
| 1135 | history->peer, |
| 1136 | history).known) { |
| 1137 | if (const auto user = history->peer->asUser()) { |
| 1138 | const auto api = &_descriptor.session->api(); |
| 1139 | api->premium().resolveMessageMoneyRestrictions(user); |
| 1140 | } |
| 1141 | } |
| 1142 | } |
| 1143 | |
| 1144 | auto ShareBox::Inner::getChat(not_null<Dialogs::Row*> row) |
| 1145 | -> not_null<Chat*> { |
nothing calls this directly
no test coverage detected