diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-09-22 01:42:51 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-09-22 04:12:03 +0200 |
commit | a29f310b8ad0b088860fe05a5499bccef963a503 (patch) | |
tree | 7df3abb8e3b3652bf6f7d13ac336e498c60509b9 /plugins | |
parent | 7bf0f7107b72af01fea83a7343ce1c32e54865e9 (diff) |
Add ctrl+i to view attached images/videos to matrix posts
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Matrix.hpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp index c7cb154..b2e1711 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -10,10 +10,19 @@ namespace QuickMedia { std::string avatar_url; }; + enum class MessageType { + TEXT, + IMAGE, + VIDEO + }; + struct Message { // Index into |RoomData.user_info| size_t user_id; - std::string msg; + std::string body; + std::string url; + std::string thumbnail_url; + MessageType type; }; struct RoomData { |