| 370 | } |
| 371 | |
| 372 | void DateClickHandler::onClick(ClickContext context) const { |
| 373 | const auto my = context.other.value<ClickHandlerContext>(); |
| 374 | if (const auto window = my.sessionWindow.get()) { |
| 375 | if (!_chat.topic()) { |
| 376 | window->showCalendar({ _chat, _date, true, true }); |
| 377 | } else if (const auto strong = _weak.get()) { |
| 378 | window->showCalendar({ strong, _date, true, true }); |
| 379 | } |
| 380 | } |
| 381 | } |
| 382 | |
| 383 | ForumThreadClickHandler::ForumThreadClickHandler(not_null<HistoryItem*> item) |
| 384 | : _thread(resolveThread(item)) { |
no test coverage detected