| 518 | } |
| 519 | |
| 520 | bool ChatsListBoxController::appendRow(not_null<History*> history) { |
| 521 | if (auto row = delegate()->peerListFindRow(history->peer->id.value)) { |
| 522 | updateRowHook(static_cast<Row*>(row)); |
| 523 | return false; |
| 524 | } |
| 525 | if (auto row = createRow(history)) { |
| 526 | delegate()->peerListAppendRow(std::move(row)); |
| 527 | return true; |
| 528 | } |
| 529 | return false; |
| 530 | } |
| 531 | |
| 532 | PeerListStories::PeerListStories( |
| 533 | not_null<PeerListController*> controller, |
nothing calls this directly
no test coverage detected