diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-31 00:47:12 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-10-31 13:04:39 +0100 |
commit | 4357c47ebe11552844d2479a74f15f1927f4d038 (patch) | |
tree | e4f7d4f9de5660c59a64c1f230b8b10d6eeeb90e /src/EventAccessors.h | |
parent | 22c5076c64348c1877fee7694fa7f507986f4f78 (diff) |
A few more small speedups
Diffstat (limited to 'src/EventAccessors.h')
-rw-r--r-- | src/EventAccessors.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/EventAccessors.h b/src/EventAccessors.h index e061304f..78484e91 100644 --- a/src/EventAccessors.h +++ b/src/EventAccessors.h @@ -48,16 +48,25 @@ const std::string & sender(const mtx::events::collections::TimelineEvents &event); bool +is_state_event(const mtx::events::collections::StateEvents &event); +bool is_state_event(const mtx::events::collections::TimelineEvents &event); QDateTime origin_server_ts(const mtx::events::collections::TimelineEvents &event); +std::uint64_t +origin_server_ts_ms(const mtx::events::collections::TimelineEvents &event); + std::string filename(const mtx::events::collections::TimelineEvents &event); +mtx::events::EventType +event_type(const mtx::events::collections::TimelineEvents &event); mtx::events::MessageType msg_type(const mtx::events::collections::TimelineEvents &event); +bool +is_message(const mtx::events::collections::TimelineEvents &event); std::string room_name(const mtx::events::collections::TimelineEvents &event); std::string |