Initial forum support in bots data classes.

This commit is contained in:
John Preston
2025-09-05 14:23:06 +04:00
parent 6974c511ea
commit b4d1ba07a6
40 changed files with 369 additions and 182 deletions

View File

@@ -79,7 +79,7 @@ PeerData *Key::peer() const {
if (const auto peer = std::get_if<not_null<PeerData*>>(&_value)) {
return *peer;
} else if (const auto topic = this->topic()) {
return topic->channel();
return topic->peer();
} else if (const auto sublist = this->sublist()) {
return sublist->owningHistory()->peer;
}