2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Show pin confirmation correctly in topics.

This commit is contained in:
John Preston
2023-04-21 15:09:06 +04:00
parent b782569faf
commit 05b8b9f22e
3 changed files with 9 additions and 6 deletions

View File

@@ -2154,7 +2154,7 @@ void ToggleMessagePinned(
}
if (pin) {
navigation->parentController()->show(
Box(PinMessageBox, item->history()->peer, item->id),
Box(PinMessageBox, item),
Ui::LayerOption::CloseOther);
} else {
const auto peer = item->history()->peer;