aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/room.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/room.h b/lib/room.h
index ca9f36cb..73f28a6e 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -81,11 +81,14 @@ public:
QString eventId;
QDateTime timestamp;
- bool operator==(const ReadReceipt& other)
+ bool operator==(const ReadReceipt& other) const
{
return eventId == other.eventId && timestamp == other.timestamp;
}
- bool operator!=(const ReadReceipt& other) { return !operator==(other); }
+ bool operator!=(const ReadReceipt& other) const
+ {
+ return !operator==(other);
+ }
};
inline void swap(ReadReceipt& lhs, ReadReceipt& rhs)
{