1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

revert(chatlog): "feat: check chat status before start a search"

This reverts commit ce570927b145676ff3a63f36a3fe082fa52b228a.
This commit is contained in:
Anthony Bilinski 2020-04-04 22:45:58 -07:00
parent c1d0624b5d
commit 6395ce3aae
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -934,18 +934,8 @@ void GenericChatForm::onSearchTriggered()
void GenericChatForm::searchInBegin(const QString& phrase, const ParameterSearch& parameter)
{
if (phrase.isEmpty()) {
disableSearchText();
return;
}
if (chatLog.getNextIdx().get() == messages.rbegin()->first.get() + 1) {
disableSearchText();
} else {
goToCurrentDate();
}
if (!parameter.time.isNull()) {
LoadHistoryDialog::LoadType type = (parameter.period == PeriodSearch::BeforeDate)
? LoadHistoryDialog::to : LoadHistoryDialog::from;