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:
@@ -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();
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user