| 1085 | } |
| 1086 | |
| 1087 | bool Histories::isCreatingTopic( |
| 1088 | not_null<History*> history, |
| 1089 | MsgId rootId) const { |
| 1090 | const auto forum = history->asForum(); |
| 1091 | return forum && forum->creating(rootId); |
| 1092 | } |
| 1093 | |
| 1094 | int Histories::sendPreparedMessage( |
| 1095 | not_null<History*> history, |