mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 11:28:03 +02:00
add limits to QXmppArchiveManager
This commit is contained in:
parent
c968a4bdb6
commit
b02883f84d
1 changed files with 10 additions and 0 deletions
|
@ -216,6 +216,16 @@ void ChatWindow::connected() {
|
||||||
connect(publicChatRoom, SIGNAL(participantsChanged()), this, SLOT(participantsChanged()));
|
connect(publicChatRoom, SIGNAL(participantsChanged()), this, SLOT(participantsChanged()));
|
||||||
|
|
||||||
|
|
||||||
|
// set limits
|
||||||
|
QDateTime m_startDate = QDateTime::currentDateTime().addDays(-2);
|
||||||
|
QDateTime m_endDate = QDateTime::currentDateTime();
|
||||||
|
|
||||||
|
QXmppResultSetQuery rsmQuery;
|
||||||
|
rsmQuery.setMax(100);
|
||||||
|
|
||||||
|
QXmppArchiveManager* archiveManager = XmppClient::getInstance().getArchiveManager();
|
||||||
|
archiveManager->listCollections("", m_startDate, m_endDate, rsmQuery);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
startTimerForTimeStamps();
|
startTimerForTimeStamps();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue