| 525 | } |
| 526 | |
| 527 | UserData *Session::userLoaded(UserId id) const { |
| 528 | if (const auto peer = peerLoaded(peerFromUser(id))) { |
| 529 | return peer->asUser(); |
| 530 | } |
| 531 | return nullptr; |
| 532 | } |
| 533 | |
| 534 | ChatData *Session::chatLoaded(ChatId id) const { |
| 535 | if (const auto peer = peerLoaded(peerFromChat(id))) { |
no test coverage detected