Skip to content

Commit

Permalink
Room: PostReadMarkersJob should be in background
Browse files Browse the repository at this point in the history
...meaning - errors from it should not throw up at a user, who has no
clue (they still should go to logs for investigation).
  • Loading branch information
KitsuneRal committed Jun 20, 2020
1 parent 593c241 commit d70b2d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/room.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d70b2d2

Please sign in to comment.