aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-20 19:07:46 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-20 19:07:46 +0200
commitd70b2d29c11ec7a0e177c2979beeab9ddb6eb5c3 (patch)
treec786578b80ba41add10519ee714f128c18fb8ce9 /lib/room.cpp
parent593c241661148dfd80854d3e156d9a4ee60d5ab4 (diff)
downloadlibquotient-d70b2d29c11ec7a0e177c2979beeab9ddb6eb5c3.tar.gz
libquotient-d70b2d29c11ec7a0e177c2979beeab9ddb6eb5c3.zip
Room: PostReadMarkersJob should be in background
...meaning - errors from it should not throw up at a user, who has no clue (they still should go to logs for investigation).
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index b83d805c..5a4a8611 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -623,7 +623,8 @@ Room::Changes Room::Private::setLastReadEvent(User* u, QString eventId)
emit q->readMarkerForUserMoved(u, eventId, storedId);
if (isLocalUser(u)) {
if (storedId != serverReadMarker)
- connection->callApi<PostReadMarkersJob>(id, storedId);
+ connection->callApi<PostReadMarkersJob>(BackgroundRequest, id,
+ storedId);
emit q->readMarkerMoved(eventId, storedId);
return Change::ReadMarkerChange;
}