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

Function WhoReactedExists

Telegram/SourceFiles/api/api_who_reacted.cpp:786–793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

784}
785
786bool WhoReactedExists(
787 not_null<HistoryItem*> item,
788 WhoReactedList list) {
789 if (item->canViewReactions() || WhoReadExists(item)) {
790 return true;
791 }
792 return (list == WhoReactedList::One) && item->history()->peer->isUser();
793}
794
795rpl::producer<Ui::WhoReadContent> WhoReacted(
796 not_null<HistoryItem*> item,

Callers 3

showContextMenuMethod · 0.85
FillContextMenuItemsFunction · 0.85
showContextMenuMethod · 0.85

Calls 4

WhoReadExistsFunction · 0.85
canViewReactionsMethod · 0.80
isUserMethod · 0.45
historyMethod · 0.45

Tested by

no test coverage detected