| 342 | } |
| 343 | |
| 344 | void Forum::applyReceivedTopics( |
| 345 | const MTPmessages_ForumTopics &topics, |
| 346 | ForumOffsets &updateOffsets) { |
| 347 | applyReceivedTopics(topics, [&](not_null<ForumTopic*> topic) { |
| 348 | if (const auto last = topic->lastServerMessage()) { |
| 349 | updateOffsets.date = last->date(); |
| 350 | updateOffsets.id = last->id; |
| 351 | } |
| 352 | updateOffsets.topicId = topic->rootId(); |
| 353 | }); |
| 354 | } |
| 355 | |
| 356 | void Forum::applyReceivedTopics( |
| 357 | const MTPmessages_ForumTopics &topics, |
no test coverage detected