2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-10-19 14:26:55 +00:00

Create / move forum topics on new messages.

This commit is contained in:
John Preston
2022-09-23 23:21:31 +04:00
parent 388fe6adfb
commit eaf679916a
19 changed files with 155 additions and 58 deletions

View File

@@ -25,7 +25,7 @@ Key::Key(History *history) : _value(history) {
Key::Key(Data::Folder *folder) : _value(folder) {
}
Key::Key(Data::ForumTopic *forumTopic) : _value(forumTopic) {
Key::Key(Data::ForumTopic *topic) : _value(topic) {
}
Key::Key(not_null<History*> history) : _value(history) {
@@ -34,7 +34,7 @@ Key::Key(not_null<History*> history) : _value(history) {
Key::Key(not_null<Data::Folder*> folder) : _value(folder) {
}
Key::Key(not_null<Data::ForumTopic*> forumTopic) : _value(forumTopic) {
Key::Key(not_null<Data::ForumTopic*> topic) : _value(topic) {
}
not_null<Entry*> Key::entry() const {
@@ -51,8 +51,8 @@ Folder *Key::folder() const {
return _value ? _value->asFolder() : nullptr;
}
ForumTopic *Key::forumTopic() const {
return _value ? _value->asForumTopic() : nullptr;
ForumTopic *Key::topic() const {
return _value ? _value->asTopic() : nullptr;
}
PeerData *Key::peer() const {