2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Update API scheme & fix monoforum send.

This commit is contained in:
John Preston
2025-05-09 13:46:14 +04:00
parent f8913bf9b9
commit abcf7e3a47
14 changed files with 102 additions and 22 deletions

View File

@@ -2497,6 +2497,15 @@ void Widget::escape() {
} else if (initial != forum) {
controller()->showForum(initial);
}
} else if (const auto monoforum
= controller()->shownMonoforum().current()) {
const auto id = controller()->windowId(); // #TODO monoforum
const auto initial = (Data::SavedMessages*)nullptr;
if (!initial) {
controller()->closeMonoforum();
} else if (initial != monoforum) {
controller()->showMonoforum(initial);
}
} else if (controller()->openedFolder().current()) {
if (!controller()->windowId().folder()) {
controller()->closeFolder();

View File

@@ -458,7 +458,9 @@ void PaintRow(
const auto promoted = (history && history->useTopPromotion())
&& !context.search;
const auto verifyInfo = (from && !from->isSelf())
const auto verifyInfo = (from
&& (!from->isSelf()
|| (!(flags & Flag::SavedMessages) && !(flags & Flag::MyNotes))))
? from->botVerifyDetails()
: nullptr;
if (promoted) {
@@ -996,7 +998,7 @@ void RowPainter::Paint(
: nullptr;
const auto allowUserOnline = true;// !context.narrow || badgesState.empty();
const auto flags = (allowUserOnline ? Flag::AllowUserOnline : Flag(0))
| ((sublist && from->isSelf())
| ((sublist && !sublist->parentChat() && from->isSelf())
? Flag::MyNotes
: (peer && peer->isSelf())
? Flag::SavedMessages