mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Version 4.5: Fix search in topic.
This commit is contained in:
parent
2adc20f07f
commit
4f3510c47c
1 changed files with 2 additions and 4 deletions
|
@ -2160,15 +2160,13 @@ bool Widget::setSearchInChat(Key chat, PeerData *from) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_searchInMigrated = nullptr;
|
_searchInMigrated = nullptr;
|
||||||
if (peer) {
|
if (peer && !forum) {
|
||||||
if (_layout != Layout::Main) {
|
if (_layout != Layout::Main) {
|
||||||
return false;
|
return false;
|
||||||
} else if (const auto migrateTo = peer->migrateTo()) {
|
} else if (const auto migrateTo = peer->migrateTo()) {
|
||||||
return setSearchInChat(peer->owner().history(migrateTo), from);
|
return setSearchInChat(peer->owner().history(migrateTo), from);
|
||||||
} else if (const auto migrateFrom = peer->migrateFrom()) {
|
} else if (const auto migrateFrom = peer->migrateFrom()) {
|
||||||
if (!forum) {
|
_searchInMigrated = peer->owner().history(migrateFrom);
|
||||||
_searchInMigrated = peer->owner().history(migrateFrom);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (searchInPeerUpdated) {
|
if (searchInPeerUpdated) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue