mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Wrapped raw SectionMemento with unique_ptr.
This commit is contained in:
@@ -1776,7 +1776,7 @@ bool Widget::onCancelSearch() {
|
||||
if (const auto peer = _searchInChat.peer()) {
|
||||
Ui::showPeerHistory(peer, ShowAtUnreadMsgId);
|
||||
//} else if (const auto feed = _searchInChat.feed()) { // #feed
|
||||
// controller()->showSection(HistoryFeed::Memento(feed));
|
||||
// controller()->showSection(std::make_unique<HistoryFeed::Memento>(feed));
|
||||
} else {
|
||||
Unexpected("Empty key in onCancelSearch().");
|
||||
}
|
||||
@@ -1800,7 +1800,7 @@ void Widget::onCancelSearchInChat() {
|
||||
if (const auto peer = _searchInChat.peer()) {
|
||||
Ui::showPeerHistory(peer, ShowAtUnreadMsgId);
|
||||
//} else if (const auto feed = _searchInChat.feed()) { // #feed
|
||||
// controller()->showSection(HistoryFeed::Memento(feed));
|
||||
// controller()->showSection(std::make_unique<HistoryFeed::Memento>(feed));
|
||||
} else {
|
||||
Unexpected("Empty key in onCancelSearchInPeer().");
|
||||
}
|
||||
|
Reference in New Issue
Block a user