We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation for the interface in KTp/Logger/scrollback-manager can be as trivial as:
diff --git a/KTp/Logger/scrollback-manager.cpp b/KTp/Logger/scrollback-manager.cpp index d9680ae..8f3ab43 100644 --- a/KTp/Logger/scrollback-manager.cpp +++ b/KTp/Logger/scrollback-manager.cpp @@ -105,11 +105,15 @@ void ScrollbackManager::fetchHistory(int n) { if (n > 0 && !d->account.isNull() && !d->textChannel.isNull()) { if (d->contactEntity.isValid()) { - KTp::LogManager *manager = KTp::LogManager::instance(); - KTp::PendingLoggerDates *dates = manager->queryDates(d->account, d->contactEntity); - connect(dates, SIGNAL(finished(KTp::PendingLoggerOperation*)), - this, SLOT(onDatesFinished(KTp::PendingLoggerOperation*))); - return; + if (d->textChannel->hasArchiveInterface()) { + d->textChannel->getMessages(); + } else { + KTp::LogManager *manager = KTp::LogManager::instance(); + KTp::PendingLoggerDates *dates = manager->queryDates(d->account, d->contactEntity); + connect(dates, SIGNAL(finished(KTp::PendingLoggerOperation*)), + this, SLOT(onDatesFinished(KTp::PendingLoggerOperation*))); + return; + } } }
But, it would be much better to implement a proper plugin with KTp::AbstractLoggerPlugin inheritance.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Implementation for the interface in KTp/Logger/scrollback-manager can be as trivial as:
But, it would be much better to implement a proper plugin with KTp::AbstractLoggerPlugin inheritance.
The text was updated successfully, but these errors were encountered: