summary refs log tree commit diff
path: root/src/CacheStructs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/CacheStructs.h')
-rw-r--r--src/CacheStructs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/CacheStructs.h b/src/CacheStructs.h

index b3917058..43055145 100644 --- a/src/CacheStructs.h +++ b/src/CacheStructs.h
@@ -49,7 +49,7 @@ struct DescInfo QString userid; QString body; QString descriptiveTime; - uint64_t timestamp; + uint64_t timestamp = 0; QDateTime datetime; }; @@ -89,6 +89,10 @@ struct RoomInfo //! The list of tags associated with this room std::vector<std::string> tags; + //! An approximate timestamp of when the last message was sent in the room. + //! Use the TimelineModel::lastMessage for an accurate timestamp. + uint64_t approximate_last_modification_ts = 0; + uint16_t highlight_count = 0; uint16_t notification_count = 0; };