diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-10-28 13:08:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 13:08:59 +0100 |
commit | 12f1eea08f84e1ca9229272d3fae88dc8d787c72 (patch) | |
tree | 636fb7744b16051045084ec10aa95f6aaa78ffc0 /lib/room.cpp | |
parent | 6e4e22cfa4a807ab18fbf1d704f312d0876a4ef5 (diff) | |
parent | 4b50702e014007d19cc89c2118da0af2b01b976b (diff) | |
download | libquotient-12f1eea08f84e1ca9229272d3fae88dc8d787c72.tar.gz libquotient-12f1eea08f84e1ca9229272d3fae88dc8d787c72.zip |
Merge pull request #411 from JohnDr/johnd-mods
Added filter param to getPreviousContent
Diffstat (limited to 'lib/room.cpp')
-rw-r--r-- | lib/room.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/room.cpp b/lib/room.cpp index eff3d144..f8e6e6ba 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -205,7 +205,7 @@ public: /// A point in the timeline corresponding to baseState rev_iter_t timelineBase() const { return q->findInTimeline(-1); } - void getPreviousContent(int limit = 10); + void getPreviousContent(int limit = 10, const QString &filter = {}); const StateEventBase* getCurrentState(const StateEventKey& evtKey) const { @@ -1832,15 +1832,15 @@ void Room::hangupCall(const QString& callId) d->sendEvent<CallHangupEvent>(callId); } -void Room::getPreviousContent(int limit) { d->getPreviousContent(limit); } +void Room::getPreviousContent(int limit, const QString &filter) { d->getPreviousContent(limit, filter); } -void Room::Private::getPreviousContent(int limit) +void Room::Private::getPreviousContent(int limit, const QString &filter) { if (isJobRunning(eventsHistoryJob)) return; eventsHistoryJob = - connection->callApi<GetRoomEventsJob>(id, prevBatch, "b", "", limit); + connection->callApi<GetRoomEventsJob>(id, prevBatch, "b", "", limit, filter); emit q->eventsHistoryJobChanged(); connect(eventsHistoryJob, &BaseJob::success, q, [=] { prevBatch = eventsHistoryJob->end(); |