2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 23:45:44 +00:00

Remove send actions in Saved Messages.

Fixes #4122.
This commit is contained in:
John Preston
2017-12-07 18:27:59 +04:00
parent a032f24d58
commit 355747d7bf
6 changed files with 109 additions and 66 deletions

View File

@@ -374,6 +374,10 @@ void RowPainter::paint(
auto from = history->peer->migrateTo()
? history->peer->migrateTo()
: history->peer;
const auto flags = (active ? Flag::Active : Flag(0))
| (selected ? Flag::Selected : Flag(0))
| (onlyBackground ? Flag::OnlyBackground : Flag(0))
| (history->peer->isSelf() ? Flag::SavedMessages : Flag(0));
auto paintItemCallback = [&](int nameleft, int namewidth) {
auto availableWidth = namewidth;
auto texttop = st::dialogsPadding.y() + st::msgNameFont->height + st::dialogsSkip;
@@ -469,10 +473,6 @@ void RowPainter::paint(
paintUnreadCount(p, counter, unreadRight, unreadTop, st, &unreadWidth);
}
};
const auto flags = (active ? Flag::Active : Flag(0))
| (selected ? Flag::Selected : Flag(0))
| (onlyBackground ? Flag::OnlyBackground : Flag(0))
| (history->peer->isSelf() ? Flag::SavedMessages : Flag(0));
paintRow(
p,
row,