MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / onClick

Method onClick

Telegram/SourceFiles/window/window_session_controller.cpp:372–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372void 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
383ForumThreadClickHandler::ForumThreadClickHandler(not_null<HistoryItem*> item)
384: _thread(resolveThread(item)) {

Callers 1

checkLockByTermsMethod · 0.45

Calls 4

showThreadMethod · 0.80
getMethod · 0.45
topicMethod · 0.45
showCalendarMethod · 0.45

Tested by

no test coverage detected