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

Fix display of pinned messages in sublists.

This commit is contained in:
John Preston
2025-06-02 16:43:39 +04:00
parent dfc1ec3ccf
commit cd05586d51
8 changed files with 48 additions and 15 deletions

View File

@@ -83,7 +83,9 @@ void PinMessageBox(
object->setAllowTextLines();
state->pinForPeer = Ui::MakeWeak(object.data());
return object;
} else if (!pinningOld && (peer->isChat() || peer->isMegagroup())) {
} else if (!pinningOld
&& (peer->isChat() || peer->isMegagroup())
&& !peer->isMonoforum()) {
auto object = object_ptr<Ui::Checkbox>(
box,
tr::lng_pinned_notify(tr::now),