2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 16:05:57 +00:00

Allow archive with stories only.

This commit is contained in:
John Preston
2023-07-18 12:15:19 +04:00
parent 35214d108e
commit 4402cce928
17 changed files with 207 additions and 78 deletions

View File

@@ -331,22 +331,23 @@ void PaintRow(
context.st->padding.top(),
context.width,
context.st->photoSize);
} else if (from) {
row->paintUserpic(
p,
from,
videoUserpic,
(flags & Flag::AllowUserOnline) ? history : nullptr,
context);
} else if (hiddenSenderInfo) {
} else if (!from && hiddenSenderInfo) {
hiddenSenderInfo->emptyUserpic.paintCircle(
p,
context.st->padding.left(),
context.st->padding.top(),
context.width,
context.st->photoSize);
} else if (!(flags & Flag::AllowUserOnline)) {
PaintUserpic(
p,
entry,
from,
videoUserpic,
row->userpicView(),
context);
} else {
entry->paintUserpic(p, row->userpicView(), context);
row->paintUserpic(p, entry, from, videoUserpic, context);
}
auto nameleft = context.st->nameLeft;
@@ -785,7 +786,7 @@ void RowPainter::Paint(
? history->peer->migrateTo()
: history->peer.get())
: nullptr;
const auto allowUserOnline = !context.narrow || badgesState.empty();
const auto allowUserOnline = true;// !context.narrow || badgesState.empty();
const auto flags = (allowUserOnline ? Flag::AllowUserOnline : Flag(0))
| (peer && peer->isSelf() ? Flag::SavedMessages : Flag(0))
| (peer && peer->isRepliesChat() ? Flag::RepliesMessages : Flag(0))