mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Add a tab with "Who Seen" to "Who Reacted" box.
This commit is contained in:
@@ -926,6 +926,10 @@ whoReadReactionsDisabled: icon{{ "menu/read_reactions", menuFgDisabled }};
|
||||
|
||||
reactionsTabAll: icon {{ "menu/read_reactions", windowFg }};
|
||||
reactionsTabAllSelected: icon {{ "menu/read_reactions", activeButtonFg }};
|
||||
reactionsTabPlayed: icon {{ "menu/read_audio", windowFg }};
|
||||
reactionsTabPlayedSelected: icon {{ "menu/read_audio", activeButtonFg }};
|
||||
reactionsTabChecks: icon {{ "menu/read_ticks", windowFg }};
|
||||
reactionsTabChecksSelected: icon {{ "menu/read_ticks", activeButtonFg }};
|
||||
reactionsTabs: MultiSelect(defaultMultiSelect) {
|
||||
padding: margins(12px, 10px, 12px, 10px);
|
||||
}
|
||||
|
@@ -352,6 +352,10 @@ void Action::paint(Painter &p) {
|
||||
|
||||
void Action::refreshText() {
|
||||
const auto usersCount = int(_content.participants.size());
|
||||
const auto onlySeenCount = ranges::count(
|
||||
_content.participants,
|
||||
QString(),
|
||||
&WhoReadParticipant::reaction);
|
||||
const auto count = std::max(_content.fullReactionsCount, usersCount);
|
||||
_text.setMarkedText(
|
||||
_st.itemStyle,
|
||||
@@ -365,7 +369,8 @@ void Action::refreshText() {
|
||||
_content.fullReactionsCount,
|
||||
_content.fullReadCount)
|
||||
: (_content.type == WhoReadType::Reacted
|
||||
|| (count > 0 && _content.fullReactionsCount > usersCount))
|
||||
|| (count > 0 && _content.fullReactionsCount > usersCount)
|
||||
|| (count > 0 && onlySeenCount == 0))
|
||||
? (count
|
||||
? tr::lng_context_seen_reacted(
|
||||
tr::now,
|
||||
|
Reference in New Issue
Block a user