diff options
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r-- | src/QuickMedia.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 6970920..4e84cda 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -3754,8 +3754,9 @@ namespace QuickMedia { setting_read_marker = true; RoomData *room = current_room; std::string event_id = message->event_id; - set_read_marker_future = [this, room, event_id]() mutable { - if(matrix->set_read_marker(room, event_id) != PluginResult::OK) { + int64_t event_timestamp = message->timestamp; + set_read_marker_future = [this, room, event_id, event_timestamp]() mutable { + if(matrix->set_read_marker(room, event_id, event_timestamp) != PluginResult::OK) { fprintf(stderr, "Warning: failed to set read marker to %s\n", event_id.c_str()); } }; |