| 93 | BotInfo::~BotInfo() = default; |
| 94 | |
| 95 | void BotInfo::ensureForum(not_null<UserData*> that) { |
| 96 | if (!_forum) { |
| 97 | const auto history = that->owner().history(that); |
| 98 | _forum = std::make_unique<Data::Forum>(history); |
| 99 | history->forumChanged(nullptr); |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | Data::Forum *BotInfo::forum() const { |
| 104 | return _forum.get(); |
no test coverage detected