aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--room.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/room.cpp b/room.cpp
index 56b300b0..c7bf0208 100644
--- a/room.cpp
+++ b/room.cpp
@@ -474,7 +474,7 @@ void Room::processEphemeralEvent(Event* event)
for( QString eventId: receiptEvent->events() )
{
const auto receipts = receiptEvent->receiptsForEvent(eventId);
- for( const Receipt r: receipts )
+ for( const Receipt& r: receipts )
{
d->lastReadEvent.insert(d->connection->user(r.userId), eventId);
}