Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F83415820
D303.1779456846.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
979 B
Referenced Files
None
Subscribers
None
D303.1779456846.diff
View Options
diff --git a/src/client/room/room.hpp b/src/client/room/room.hpp
--- a/src/client/room/room.hpp
+++ b/src/client/room/room.hpp
@@ -819,7 +819,7 @@
* @param userId userId of the given user
* @return true iff the event is read by the user
*/
- bool isReadBy(const std::string &eventId, const std::string &userId);
+ bool isReadBy(const std::string &eventId, const std::string &userId) const;
private:
const lager::reader<SdkModel> &sdkCursor() const;
diff --git a/src/client/room/room.cpp b/src/client/room/room.cpp
--- a/src/client/room/room.cpp
+++ b/src/client/room/room.cpp
@@ -945,7 +945,7 @@
return m_roomCursor[&RoomModel::unreadNotificationEventIds];
}
- bool Room::isReadBy(const std::string &eventId, const std::string &userId)
+ bool Room::isReadBy(const std::string &eventId, const std::string &userId) const
{
return m_roomCursor.get().isReadBy(eventId, userId);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 22, 6:34 AM (16 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1494796
Default Alt Text
D303.1779456846.diff (979 B)
Attached To
Mode
D303: Add const keyword to Room::isReadBy
Attached
Detach File
Event Timeline
Log In to Comment